Merge pull request #35 from collabora/dependabot/cargo/thiserror-2.0.7 #140
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
name: test suite | |
on: | |
push: | |
branches-ignore: | |
- "gh-readonly-queue/**" | |
pull_request: | |
merge_group: | |
jobs: | |
test: | |
name: cargo test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master # avoid the tack to prevent dependabot updates | |
with: | |
toolchain: "1.81" | |
- run: cargo test --all-targets --all-features | |
- run: cargo test --doc --all-features | |
fmt: | |
name: cargo fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master # avoid the tack to prevent dependabot updates | |
with: | |
toolchain: "1.81" | |
components: rustfmt | |
- run: cargo fmt --all --check | |
clippy: | |
name: cargo clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master # avoid the tack to prevent dependabot updates | |
with: | |
toolchain: "1.81" | |
components: clippy | |
- run: cargo clippy --all-targets --all-features -- -D warnings | |
allgreen: | |
if: always() | |
needs: | |
- test | |
- fmt | |
- clippy | |
runs-on: Ubuntu-latest | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |