enable error-on-warning (#10410)

Only on linux and osx. Fixes one warning.
This commit is contained in:
Ryan Dahl 2021-04-28 15:10:44 -04:00 committed by GitHub
parent f60373e0d1
commit e63c533154
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -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: |-