summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-04-28 15:10:44 -0400
committerGitHub <noreply@github.com>2021-04-28 15:10:44 -0400
commite63c53315450ed305752566f4c3ad2bb76c8b8a3 (patch)
treee8bde035d9a7e9c201f04ae1b489e6d3d28b517b /.github
parentf60373e0d1e9e1a4927d5ff855cab644d10d29d4 (diff)
enable error-on-warning (#10410)
Only on linux and osx. Fixes one warning.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2d433d030..ab2183de7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -48,8 +48,6 @@ jobs:
env:
RUST_BACKTRACE: full
CARGO_TERM_COLOR: always
- # TODO(ry) Enable error on warning after fixing https://github.com/denoland/deno/issues/10378
- # RUSTFLAGS: -D warnings
steps:
- name: Configure git
@@ -93,6 +91,12 @@ jobs:
curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.7.2
echo "$HOME/.deno/bin" >> $GITHUB_PATH
+ # TODO(ry) Enable on all OSes https://github.com/denoland/deno/issues/10378
+ - name: Error on Warning
+ if: |
+ !startsWith(matrix.os, 'windows')
+ run: echo "RUSTFLAGS=-D warnings" >> $GITHUB_ENV
+
- name: Install Deno (Windows)
if: startsWith(matrix.os, 'windows')
run: |-