Skip to content

Commit d098105

Browse files
committedAug 30, 2024·
chore: fix workflow
1 parent f77e63a commit d098105

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed
 

‎.github/workflows/node.js.yml

+23-20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
23
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
34

@@ -9,14 +10,9 @@ on:
910
pull_request:
1011
branches: [main]
1112

12-
13-
1413
jobs:
1514
build:
1615
runs-on: ubuntu-latest
17-
strategy:
18-
matrix:
19-
node-version: [20.x]
2016
# env:
2117
# # ROOCH_ORACLE_ADDRESS= ${{ secrets.ROOCH_ORACLE_ADDRESS }}
2218
# # ROOCH_PRIVATE_KEY= ${{ secrets.ROOCH_PRIVATE_KEY }}
@@ -38,21 +34,28 @@ jobs:
3834
- name: build
3935
run: npx yarn build
4036

41-
# Set up Rust
42-
- uses: actions/setup-rust@v1
43-
with:
44-
toolchain: stable
45-
46-
- name: Clone and setup Rooch
47-
run: |
48-
git clone https://github.com/rooch-network/rooch.git _rooch
49-
cd _rooch
50-
cargo build
51-
cp target/debug/rooch ~/.cargo/bin/
37+
- name: Use Node.js ${{ matrix.node-version }} 🛎️
38+
uses: actions/checkout@v3
39+
with:
40+
node-version: ${{ matrix.node-version }}
41+
persist-credentials: false
5242

43+
- name: Install 🔧 dependencies
44+
run: npx yarn install
5345

46+
- name: build
47+
run: npx yarn build
5448

55-
56-
# Run tests
57-
- run: rooch move test
58-
- run: cargo test
49+
# Set up Rust
50+
- uses: actions/setup-rust@v1
51+
with:
52+
toolchain: stable
53+
54+
- name: Clone and setup Rooch
55+
run: |
56+
git clone https://github.com/rooch-network/rooch.git _rooch
57+
cd _rooch
58+
cargo build
59+
cp target/debug/rooch ~/.cargo/bin/
60+
cd rooch
61+
rooch move test

0 commit comments

Comments
 (0)
Please sign in to comment.