Bump actions/setup-node from 3 to 4 (#853) #3183
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
merge_group: | |
jobs: | |
build-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@nextest | |
- name: nextest archive | |
run: cargo nextest archive --workspace --all-features --cargo-profile ci --archive-file nextest-archive.tar.zst | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: nextest-archive | |
path: nextest-archive.tar.zst | |
test: | |
name: test ${{ matrix.partition }}/8 | |
runs-on: ubuntu-latest | |
needs: | |
- build-test | |
strategy: | |
fail-fast: false | |
matrix: | |
partition: [ 1, 2, 3, 4, 5, 6, 7, 8 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: taiki-e/install-action@nextest | |
- uses: actions/download-artifact@v3 | |
with: | |
name: nextest-archive | |
- name: nextest partition ${{ matrix.partition }}/8 | |
run: cargo nextest run --partition 'count:${{ matrix.partition }}/8' --archive-file nextest-archive.tar.zst | |
check-rust: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo fmt --check | |
- run: cargo clippy --all-targets --all-features -- --no-deps | |
env: | |
# Make sure CI fails on all warnings, including Clippy lints. | |
RUSTFLAGS: "-Dwarnings" | |
- run: cargo doc --all-features --no-deps | |
env: | |
# Make sure CI fails on all warnings, including Clippy lints. | |
RUSTDOCFLAGS: "-Dwarnings" | |
check-website: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./website | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
cache: npm | |
cache-dependency-path: website/package-lock.json | |
- run: npm ci | |
- run: npm run fmt:check |