From b4a28ed92d86f7b9a3497f9ae1ae19a92b5bdc50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABlle=20Huisman?= Date: Mon, 25 Aug 2025 16:02:28 +0200 Subject: [PATCH] ci: add workflow permissions --- .github/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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