From 1a154d1e3bb5e3a5dd5eaddef3aa3c1fd51cf25c Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Mon, 11 May 2020 10:28:51 -0400 Subject: [PATCH] build: enable `--error-on-warn` for POSIX workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Treat warnings as errors for non-deps code on Linux and macOS workflows. Signed-off-by: Richard Lau PR-URL: https://github.com/nodejs/node/pull/33357 Refs: https://github.com/nodejs/node/pull/32685 Reviewed-By: Michael Dawson Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Michaƫl Zasso Reviewed-By: Anna Henningsen Reviewed-By: Jiawen Geng --- .github/workflows/test-linux.yml | 2 +- .github/workflows/test-macos.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index bec9884f6c837c..1e3dc23c84e806 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -18,6 +18,6 @@ jobs: - name: Environment Information run: npx envinfo - name: Build - run: make build-ci -j2 V=1 + run: make build-ci -j2 V=1 CONFIG_FLAGS="--error-on-warn" - name: Test run: make run-ci -j2 V=1 TEST_CI_ARGS="-p dots" diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index b9794bde31b45a..60e4e214dae14a 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -18,6 +18,6 @@ jobs: - name: Environment Information run: npx envinfo - name: Build - run: make build-ci -j8 V=1 + run: make build-ci -j8 V=1 CONFIG_FLAGS="--error-on-warn" - name: Test run: make run-ci -j8 V=1 TEST_CI_ARGS="-p dots"