build: enable `--error-on-warn` for POSIX workflows

Treat warnings as errors for non-deps code on Linux and macOS workflows.

Signed-off-by: Richard Lau <riclau@uk.ibm.com>

PR-URL: https://github.com/nodejs/node/pull/33357
Refs: https://github.com/nodejs/node/pull/32685
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
pull/33357/head
Richard Lau 2020-05-11 10:28:51 -04:00
parent 3aa515210a
commit fcc183c994
No known key found for this signature in database
GPG Key ID: C43CEC45C17AB93C
2 changed files with 2 additions and 2 deletions

View File

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

View File

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