|
10 | 10 | CARGO_TERM_COLOR: always |
11 | 11 | RUST_VERSION: 1.87.0 |
12 | 12 | jobs: |
| 13 | + lint: |
| 14 | + name: Lint |
| 15 | + runs-on: ubuntu-latest |
| 16 | + steps: |
| 17 | + - name: Checkout |
| 18 | + uses: actions/checkout@v4 |
| 19 | + - uses: actions/setup-node@v4 |
| 20 | + - name: Install |
| 21 | + run: npm install |
| 22 | + - name: Run linter |
| 23 | + run: npm run lint |
| 24 | + |
13 | 25 | test: |
14 | | - name: Build, Lint & Test |
| 26 | + name: Test (${{ matrix.node-version }}) |
| 27 | + strategy: |
| 28 | + matrix: |
| 29 | + node-version: [18, 20, 22, 24, latest] |
15 | 30 | runs-on: ubuntu-latest |
16 | 31 | steps: |
17 | 32 | - name: Checkout |
18 | | - uses: actions/checkout@v2 |
19 | | - - name: Install Rust ${{ env.RUST_VERSION }} |
20 | | - run: rustup toolchain install ${{ env.RUST_VERSION }} --component clippy --component rustfmt && rustup default ${{ env.RUST_VERSION }} |
21 | | - - name: Cache |
22 | | - uses: Swatinem/rust-cache@v2 |
23 | | - - uses: actions/checkout@v4 |
| 33 | + uses: actions/checkout@v4 |
24 | 34 | - uses: actions/setup-node@v4 |
25 | 35 | with: |
26 | | - node-version-file: 'package.json' |
27 | | - - name: Build |
28 | | - run: cargo build --all-features |
| 36 | + node-version: ${{ matrix.node-version }} |
| 37 | + - name: Install |
| 38 | + run: npm install |
29 | 39 | - name: Run tests |
30 | | - run: cargo test --all-features |
31 | | - - name: Run clippy |
32 | | - run: cargo clippy --all-features -- -D warnings |
33 | | - - name: Run fmt |
34 | | - run: cargo fmt --all -- --check |
35 | | - - name: Build and Test wasm |
36 | | - run: npm install && npm run build && npm test |
37 | | - # This check is currently failing even after updating the license file. |
38 | | - # - name: Install license tool |
39 | | - # run: cargo install dd-rust-license-tool |
40 | | - # - name: Run license tool |
41 | | - # run: dd-rust-license-tool check |
| 40 | + run: npm test |
0 commit comments