Skip to content

Commit

Permalink
CI improvements (#5)
Browse files Browse the repository at this point in the history
* Run CI only on push

* Simplify CI
  • Loading branch information
avsaase authored Jan 24, 2025
1 parent 72af39e commit a61ca32
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,15 @@
name: CI
on:
push:
pull_request:

jobs:
test:
name: Tests
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Run tests
run: cargo test --all-features

formatting:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Run rustfmt
run: cargo fmt

linting:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- name: Run Clippy
run: cargo clippy --all-targets --all-features
components: clippy, rustfmt
- run: cargo test --all-features
- run: cargo fmt
- run: cargo clippy --all-targets --all-features

0 comments on commit a61ca32

Please sign in to comment.