Skip to content

Commit b1c7894

Browse files
committed
add github workflow
1 parent 49205f9 commit b1c7894

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Run Sample Project Tests
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
run-sample-project-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+
run: |
24+
wget -q https://github.com/aptos-labs/aptos-core/releases/download/aptos-cli-v7.11.1/aptos-cli-7.11.1-Ubuntu-22.04-x86_64.zip
25+
unzip -q aptos-cli-7.11.1-Ubuntu-22.04-x86_64.zip
26+
chmod +x aptos
27+
echo "$(pwd)" >> $GITHUB_PATH
28+
./aptos --version
29+
30+
- name: Build Forklift
31+
working-directory: packages/forklift
32+
run: |
33+
npm ci
34+
npm run build
35+
36+
- name: Run Sample Project Tests
37+
working-directory: packages/sample-project
38+
run: |
39+
npm ci
40+
npm test

0 commit comments

Comments
 (0)