Add support for hash-object -w #24
Workflow file for this run
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
on: | |
pull_request: | |
workflow_dispatch: | |
name: ci | |
permissions: | |
contents: read | |
jobs: | |
# Formatting for .yaml, .md, and other not-Rust things. | |
prettier: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: npm install --global [email protected] | |
- run: npx prettier --ignore-path .gitignore --write . | |
- run: git diff --exit-code | |
cargo-fmt: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: cargo --version | |
- run: cargo fmt -- --check | |
cargo-clippy: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: cargo --version | |
- run: cargo clippy --all-targets --all-features -- -D warnings | |
cargo-test: | |
name: cargo-test-${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, windows-2022, macos-14] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: cargo --version | |
- run: cargo test --all-targets --all-features | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true |