From 151d912156c76dbda271a1c2b6e1a1861f32be04 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Thu, 19 Mar 2020 19:23:17 -0700 Subject: [PATCH] Deny warnings in GitHub Actions main workflow build type: testing --- .github/workflows/build.yaml | 3 ++- justfile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7b56e4e..517ede1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -43,7 +43,8 @@ jobs: cargo --version cargo clippy --version - name: Build - run: cargo build --all --verbose + run: RUSTFLAGS="-D warnings" cargo build --all --verbose + shell: bash - name: Test run: cargo test --all --verbose - name: Clippy diff --git a/justfile b/justfile index f0c087b..274565c 100644 --- a/justfile +++ b/justfile @@ -28,7 +28,7 @@ done BRANCH=`git rev-parse --abbrev-ref HEAD`: git checkout master git diff --no-ext-diff --quiet --exit-code git pull --rebase github master - git diff --no-ext-diff --quiet --exit-code {{BRANCH}} + git diff --no-ext-diff --quiet --exit-code {{BRANCH}} -- git branch -D {{BRANCH}} test: