Skip to content

Commit

Permalink
remove noise from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Fogapod committed Feb 24, 2024
1 parent a0dd8d2 commit cf3717d
Showing 1 changed file with 17 additions and 48 deletions.
65 changes: 17 additions & 48 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,48 +9,27 @@ env:
CARGO_TERM_COLOR: always

jobs:
fmt:
runs-on: ubuntu-latest
name: stable / fmt
steps:
- uses: actions/checkout@v4
- name: Install stable
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: cargo fmt --check
run: cargo fmt --check

clippy:
lint:
runs-on: ubuntu-latest
name: ${{ matrix.toolchain }} / clippy
strategy:
fail-fast: false
matrix:
toolchain: [stable, beta]
steps:
- uses: actions/checkout@v4
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@${{ matrix.toolchain }}
- run: cargo fmt --check
- run: cargo clippy -- -D warnings

doc:
runs-on: ubuntu-latest
name: nightly / doc
steps:
- uses: actions/checkout@v4
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
- name: cargo doc
run: cargo doc --no-deps --all-features
env:
RUSTDOCFLAGS: --cfg docsrs
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- run: cargo doc --no-deps --all-features

test:
runs-on: ubuntu-latest
Expand All @@ -59,29 +38,19 @@ jobs:
matrix:
toolchain: [stable, beta]
steps:
- uses: actions/checkout@v4
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: Rust cache
uses: Swatinem/rust-cache@v2
- name: cargo test
run: cargo test --all-features --all-targets
- name: cargo test --doc
run: cargo test --all-features --doc
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@${{ matrix.toolchain }}
- uses: Swatinem/rust-cache@v2
- run: cargo test --all-features

coverage:
runs-on: ubuntu-latest
name: stable / coverage
steps:
- uses: actions/checkout@v4
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview
- name: Rust cache
uses: Swatinem/rust-cache@v2
- name: cargo install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-llvm-cov
- run: cargo llvm-cov --all-features --workspace

0 comments on commit cf3717d

Please sign in to comment.