From f58bed0af242629b52fb94bdc21c5cecc2cf4203 Mon Sep 17 00:00:00 2001 From: Rob Wagner Date: Thu, 5 Jun 2025 18:05:40 -0400 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 67 +++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 39 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7cb94f6..ce4ffcd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,47 +1,36 @@ name: ci env: - CARGO_TERM_COLOR: always + CARGO_TERM_COLOR: always on: - push: - branches: - - main - pull_request: {} + push: + branches: [main] + pull_request: {} jobs: - check: - runs-on: ubuntu-latest - strategy: - matrix: - toolchain: - - stable - - nightly - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.toolchain }} - components: clippy, rustfmt - - uses: Swatinem/rust-cache@v2 - - name: run clippy - run: cargo +nightly clippy --all-features -- -D warnings - - name: run formatter checks - run: cargo +nightly fmt --all --check + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: nightly + components: clippy, rustfmt + - uses: Swatinem/rust-cache@v2 + - name: run clippy + run: cargo clippy --all-features -- -D warnings + - name: run formatter checks + run: cargo fmt --all --check - test: - needs: check - runs-on: ubuntu-latest - strategy: - matrix: - toolchain: - - stable - - nightly - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@master - with: - toolchain: ${{ matrix.toolchain }} - - uses: Swatinem/rust-cache@v2 - - name: run tests - run: cargo +nightly test --all-features + test: + needs: check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: nightly + - uses: Swatinem/rust-cache@v2 + - name: run tests + run: cargo test --all-features