1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v4
15-
15+
1616 - name : Cache cargo dependencies
1717 uses : actions/cache@v4
1818 with :
2323 ~/.cargo/git/db/
2424 target/
2525 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
26-
26+
2727 - name : Retrieve Rust version
2828 id : rust-version
2929 run : echo "rust-version=$(grep '^rust ' .tool-versions | awk '{print $2}')" >> $GITHUB_OUTPUT
3737
3838 - name : Add wasm32-wasi target
3939 run : rustup target add wasm32-wasip1
40-
40+
4141 - name : Run cargo fmt
4242 uses : actions-rust-lang/rustfmt@v1
4343
4949 defaults :
5050 run :
5151 working-directory : crates/js/lib
52-
52+
5353 steps :
5454 - uses : actions/checkout@v4
5555
@@ -58,20 +58,20 @@ jobs:
5858 working-directory : .
5959 run : echo "node-version=$(grep '^nodejs ' .tool-versions | awk '{print $2}')" >> $GITHUB_OUTPUT
6060 shell : bash
61-
61+
6262 - name : Use Node.js
6363 uses : actions/setup-node@v4
6464 with :
6565 node-version : ${{ steps.node-version.outputs.node-version }}
66- cache : ' npm'
66+ cache : " npm"
6767 cache-dependency-path : crates/js/lib/package.json
6868
6969 - name : Install dependencies
7070 run : npm ci
7171
7272 - name : Run ESLint
7373 run : npm run lint
74-
74+
7575 - name : Run Prettier (check)
7676 run : npm run format
7777
8080 defaults :
8181 run :
8282 working-directory : crates/js/lib
83-
83+
8484 steps :
8585 - uses : actions/checkout@v4
8686
@@ -89,19 +89,19 @@ jobs:
8989 working-directory : .
9090 run : echo "node-version=$(grep '^nodejs ' .tool-versions | awk '{print $2}')" >> $GITHUB_OUTPUT
9191 shell : bash
92-
92+
9393 - name : Use Node.js
9494 uses : actions/setup-node@v4
9595 with :
9696 node-version : ${{ steps.node-version.outputs.node-version }}
97- cache : ' npm'
97+ cache : " npm"
9898 cache-dependency-path : crates/js/lib/package.json
9999
100100 - name : Install dependencies
101101 run : npm ci
102102
103103 - name : Run ESLint
104104 run : npm run lint
105-
105+
106106 - name : Run Prettier (check)
107- run : npm run format
107+ run : npm run format
0 commit comments