Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading