diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25df3a6..4ca189d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: CI on: - push: + push: pull_request: types: [opened, synchronize, reopened] @@ -19,16 +19,16 @@ jobs: steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: 1.75.0 profile: minimal override: true components: rustfmt - + - name: Setup cache uses: Swatinem/rust-cache@v2 @@ -37,23 +37,23 @@ jobs: with: command: fmt args: --check - + lint: name: Lint runs-on: ubuntu-latest steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: 1.75.0 profile: minimal override: true components: clippy - + - name: Setup cache uses: Swatinem/rust-cache@v2 @@ -69,15 +69,15 @@ jobs: steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: - toolchain: stable + toolchain: 1.75.0 profile: minimal override: true - + - name: Setup cache uses: Swatinem/rust-cache@v2 @@ -91,7 +91,7 @@ jobs: with: command: tarpaulin args: --release --all-features --engine llvm --out xml - + - name: Upload to codecov.io uses: codecov/codecov-action@v2 with: