diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ccf424e..3434796 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: branches: - main +permissions: + contents: read + env: RUSTFLAGS: '-Dwarnings' @@ -19,19 +22,16 @@ jobs: uses: actions/checkout@v5 - name: Set up Rust toolchain - run: rustup toolchain install stable --no-self-update --profile default --target wasm32-unknown-unknown - - - name: Set up Rust cache - uses: swatinem/rust-cache@v2 + uses: actions-rust-lang/setup-rust-toolchain@v1 with: - cache-on-failure: true - save-if: ${{ github.ref == 'refs/heads/main' }} + components: clippy, rustfmt + target: wasm32-unknown-unknown - name: Check formatting run: cargo fmt --all --check - name: Lint - run: cargo clippy --all-features + run: cargo clippy --all-features --locked - name: Test - run: cargo test --all-features + run: cargo test --all-features --locked --release