From 6400541a7e5ef98a793badab2bd6e79cd4cd6d00 Mon Sep 17 00:00:00 2001 From: Erwan Vivien Date: Mon, 30 Oct 2023 16:34:11 +0100 Subject: [PATCH] feat: do not allow warnings --- .github/workflows/rust.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 15828c2..da66f7a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -14,11 +14,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install wasm32-unknown-unknown target run: rustup target add wasm32-unknown-unknown + - name: Set RUSTFLAGS to deny warnings + run: export RUSTFLAGS="--deny warnings" + # With no feature. Target: normal & wasm & wasm-bindgen - name: Build run: cargo build --verbose @@ -53,7 +56,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install wasm32-unknown-unknown target run: rustup target add wasm32-unknown-unknown @@ -70,7 +73,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Tests - name: Run tests @@ -80,8 +83,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Typos - name: typos-action uses: crate-ci/typos@v1.0.4 + - name: format + run: cargo fmt --all -- --check \ No newline at end of file