Skip to content

Commit 2690864

Browse files
authored
update dependencies, ci workflows and other configs (#22)
1 parent 34fcd0b commit 2690864

File tree

16 files changed

+4506
-2388
lines changed

16 files changed

+4506
-2388
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: 'Setup Aptos CLI'
2+
description: 'Install the Aptos CLI'
3+
inputs:
4+
version:
5+
description: 'Aptos CLI version to install'
6+
required: false
7+
default: '7.14.1'
8+
runs:
9+
using: 'composite'
10+
steps:
11+
- name: Install Aptos CLI
12+
shell: bash
13+
run: |
14+
wget -q https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v${{ inputs.version }}/aptos-cli-${{ inputs.version }}-Ubuntu-22.04-x86_64.zip
15+
unzip -q aptos-cli-${{ inputs.version }}-Ubuntu-22.04-x86_64.zip
16+
chmod +x aptos
17+
echo "$(pwd)" >> $GITHUB_PATH
18+
./aptos --version

.github/workflows/run-live-tests.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run Live Tests
1+
name: Live Tests
22

33
on:
44
pull_request:
@@ -20,12 +20,7 @@ jobs:
2020
cache-dependency-path: '**/package-lock.json'
2121

2222
- name: Install Aptos CLI
23-
run: |
24-
wget -q https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v7.14.1/aptos-cli-7.14.1-Ubuntu-22.04-x86_64.zip
25-
unzip -q aptos-cli-7.14.1-Ubuntu-22.04-x86_64.zip
26-
chmod +x aptos
27-
echo "$(pwd)" >> $GITHUB_PATH
28-
./aptos --version
23+
uses: ./.github/actions/setup-aptos-cli
2924

3025
- name: Build Forklift
3126
working-directory: packages/forklift

.github/workflows/run-tests.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run Forklift Tests
1+
name: Forklift Tests
22

33
on:
44
pull_request:
@@ -20,12 +20,7 @@ jobs:
2020
cache-dependency-path: '**/package-lock.json'
2121

2222
- name: Install Aptos CLI
23-
run: |
24-
wget -q https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v7.14.1/aptos-cli-7.14.1-Ubuntu-22.04-x86_64.zip
25-
unzip -q aptos-cli-7.14.1-Ubuntu-22.04-x86_64.zip
26-
chmod +x aptos
27-
echo "$(pwd)" >> $GITHUB_PATH
28-
./aptos --version
23+
uses: ./.github/actions/setup-aptos-cli
2924

3025
- name: Build Forklift
3126
working-directory: packages/forklift
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: TipJar Tests
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
run-tip-jar-tests:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Use Node.js 22
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 22
19+
cache: 'npm'
20+
cache-dependency-path: '**/package-lock.json'
21+
22+
- name: Install Aptos CLI
23+
uses: ./.github/actions/setup-aptos-cli
24+
25+
- name: Build Forklift
26+
working-directory: packages/forklift
27+
run: |
28+
npm ci
29+
npm run build
30+
31+
- name: Run Example TipJar Tests
32+
working-directory: packages/example-tip-jar
33+
run: |
34+
npm ci
35+
npm test

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
node_modules
22
dist
3-
build
3+
build
4+
.aptos/
5+
*.log
6+
.DS_Store

0 commit comments

Comments
 (0)