diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7da0517..f6fac41 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,31 +11,39 @@ permissions: env: CARGO_TERM_COLOR: always +# The checks every wcgw app runs, as wcgw-kit does: format, lints as errors and tests on Linux, against the +# locked dependencies; a build on macOS, which is best effort. jobs: lint: + name: Format and lints runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy - uses: Swatinem/rust-cache@v2 - - run: cargo fmt --all --check - - run: cargo clippy --workspace --all-targets --locked -- -D warnings + - name: Format + run: cargo fmt --all --check + - name: Lints + run: cargo clippy --workspace --all-targets --locked -- -D warnings test: + name: Tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - - run: cargo test --workspace --locked + - name: Tests + run: cargo test --workspace --locked - # macOS is best effort (D11): it must build, tests run on Linux. macos: + name: Build on macOS runs-on: macos-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - - run: cargo build --workspace --locked + - name: Build + run: cargo build --workspace --locked