Skip to content

2.14.0-rc.0

2.14.0-rc.0 #669

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
pull_request:
merge_group:
permissions:
contents: read
jobs:
checks:
name: Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all --check
- run: cargo lint
env:
RUSTFLAGS: "-Dwarnings"
- run: cargo docs
env:
RUSTDOCFLAGS: "-Dwarnings"
- uses: taiki-e/install-action@cargo-machete
- run: cargo machete
build-test:
name: Build tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@nextest
- name: Run nextest archive
run: cargo nextest archive --workspace --all-features --cargo-profile ci --archive-file 'nextest-archive.tar.zst'
- uses: actions/upload-artifact@v5
with:
name: nextest-archive
path: nextest-archive.tar.zst
test:
name: Test ${{ matrix.partition}}/4
runs-on: ubuntu-latest
needs:
- build-test
strategy:
fail-fast: false
matrix:
partition: [1, 2, 3, 4]
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
- uses: software-mansion/setup-scarb@v1
with:
cache: false
- uses: taiki-e/install-action@nextest
- uses: actions/download-artifact@v6
with:
name: nextest-archive
- name: Run nextest partition ${{ matrix.partition }}/4
run: cargo nextest run --partition 'count:${{ matrix.partition }}/4' --archive-file 'nextest-archive.tar.zst'
check-website:
name: Website prettier check
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./website
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: "18.x"
cache: npm
cache-dependency-path: website/package-lock.json
- run: npm ci
- run: npm run fmt:check