build(deps): bump actions/checkout from 4 to 7 (#138) #9
This file contains hidden or 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: Rust core | |
| # ADR #21: the shared core is being ported to Rust so a native Windows host | |
| # becomes possible. This gate builds and tests it natively on Linux and | |
| # Windows from day one. | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "apps/headless-rs/**" | |
| - ".github/workflows/rust-core.yml" | |
| pull_request: | |
| paths: | |
| - "apps/headless-rs/**" | |
| - ".github/workflows/rust-core.yml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| defaults: | |
| run: | |
| working-directory: apps/headless-rs | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: apps/headless-rs | |
| - run: cargo test --locked | |
| - run: cargo clippy --locked --all-targets -- -D warnings |