Skip to content

Commit ce0522d

Browse files
committed
ci: cleanup workflows
1 parent d962877 commit ce0522d

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,43 +19,35 @@ jobs:
1919
check:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v6
2323
- uses: dtolnay/rust-toolchain@nightly
2424
with:
2525
components: clippy, rustfmt
2626
- name: Check format
2727
run: cargo fmt --all --check
28-
- name: Check clippy
29-
run: cargo clippy --all-targets --all-features -- -D warnings
30-
31-
test:
32-
runs-on: ubuntu-22.04
33-
needs: check
34-
steps:
35-
- uses: actions/checkout@v4
36-
- uses: dtolnay/rust-toolchain@stable
37-
- name: Test
38-
run: |
39-
uname -a
40-
cargo test --verbose
28+
- name: Clippy
29+
run: cargo clippy -- -D warnings
30+
- name: Unit tests
31+
run: cargo test -- --nocapture
4132

4233
doc:
4334
runs-on: ubuntu-latest
4435
steps:
45-
- uses: actions/checkout@v4
36+
- uses: actions/checkout@v6
4637
- uses: dtolnay/rust-toolchain@nightly
4738
- name: Build docs
4839
run: cargo doc --all-features --no-deps
4940
env:
5041
RUSTDOCFLAGS: --cfg docsrs -Z unstable-options --enable-index-page --generate-link-to-definition
5142
- name: Upload artifact
52-
uses: actions/upload-pages-artifact@v3
43+
uses: actions/upload-pages-artifact@v4
5344
with:
5445
path: target/doc
5546

5647
deploy:
5748
runs-on: ubuntu-latest
5849
needs: doc
50+
if: ${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
5951
permissions:
6052
contents: read
6153
pages: write

0 commit comments

Comments
 (0)