4747 run : |
4848 cargo clippy --release --locked --all-features --all-targets -- -D warnings
4949
50- cargo-nextest :
51- name : cargo-nextest
52- runs-on : ubuntu-24.04
53- # Don't use the full 6 hours if a test hangs
54- timeout-minutes : 30
55-
56- steps :
57- - name : Checkout
58- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
59-
60- - name : Install cargo-nextest
61- uses : taiki-e/install-action@21517c4e721ab8b872d9b8e90828e584dcabe8e2 # 2.56.3
62- with :
63- tool : cargo-nextest
64-
65- - name : cargo nextest run --locked
66- run : |
67- cargo nextest run --locked --all-features
68-
69- # This job checks for incorrectly added dependencies, or dependencies that were made unused by code changes.
70- cargo-unused-deps :
71- name : cargo-unused-deps
72- # Linux is the fastest OS
73- runs-on : ubuntu-24.04
74-
75- steps :
76- - name : Checkout
77- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
78-
79- - name : Install cargo-udeps
80- uses : taiki-e/install-action@21517c4e721ab8b872d9b8e90828e584dcabe8e2 # 2.56.3
81- with :
82- tool : cargo-udeps
83-
84- # If this check fails, check the new dependency is actually needed. If it isn't, add an exception to the
85- # crate:
86- # <https://github.com/est31/cargo-udeps?tab=readme-ov-file#ignoring-some-of-the-dependencies>
87- - name : check for unused dependencies
88- run : |
89- ./scripts/find-unused-deps.sh
90-
9150 rust-all :
9251 # Hack for buggy GitHub Actions behavior with skipped checks:
9352 # <https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks>
@@ -96,14 +55,10 @@ jobs:
9655 needs :
9756 - cargo-fmt
9857 - cargo-clippy
99- - cargo-nextest
100- - cargo-unused-deps
10158 steps :
10259 - name : Check job statuses
10360 # Another hack is to actually check the status of the dependencies or else it'll fall through
10461 run : |
10562 echo "Checking statuses..."
10663 [[ "${{ needs.cargo-fmt.result }}" == "success" ]] || exit 1
10764 [[ "${{ needs.cargo-clippy.result }}" == "success" ]] || exit 1
108- [[ "${{ needs.cargo-nextest.result }}" == "success" ]] || exit 1
109- [[ "${{ needs.cargo-unused-deps.result }}" == "success" ]] || exit 1
0 commit comments