Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,22 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
# Release PRs only bump the version/changelog (the code was already
# tested when it landed on main), so skip the build and tests. The job
# still runs so the required "test" status check is reported.
- name: Skip (release-please PR)
if: ${{ startsWith(github.head_ref || '', 'release-please--') }}
run: echo "release-please PR - skipping format, clippy and tests"

- uses: actions/checkout@v7
if: ${{ !startsWith(github.head_ref || '', 'release-please--') }}
- name: Install Rust toolchain
if: ${{ !startsWith(github.head_ref || '', 'release-please--') }}
uses: dtolnay/rust-toolchain@1.99.0
with:
components: clippy, rustfmt
- name: Cache cargo
if: ${{ !startsWith(github.head_ref || '', 'release-please--') }}
uses: actions/cache@v6
with:
path: |
Expand All @@ -30,8 +40,11 @@ jobs:
restore-keys: |
${{ runner.os }}-cargo-
- name: Check formatting
if: ${{ !startsWith(github.head_ref || '', 'release-please--') }}
run: cargo fmt --all -- --check
- name: Run clippy
if: ${{ !startsWith(github.head_ref || '', 'release-please--') }}
run: cargo clippy --all-targets -- -D warnings
- name: Run tests
if: ${{ !startsWith(github.head_ref || '', 'release-please--') }}
run: cargo test --all-targets
Loading