diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e5d12f..505ead4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,19 @@ env: CARGO_TERM_COLOR: always jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + - run: cargo fmt --check + - run: cargo clippy --all-features --all-targets -- -D warnings + test: + if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -20,4 +32,4 @@ jobs: - run: cargo fmt --check - run: cargo clippy --all-features --all-targets -- -D warnings - run: cargo test --all-features - - run: cargo doc --no-deps --all-features + - run: cargo doc --no-deps --all-features \ No newline at end of file