From 03125d44b85af23b032d902a89aa31d2a39eb9e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moreno?= Date: Fri, 29 Oct 2021 15:19:18 +0200 Subject: [PATCH] Make sure CI fails if `yarn test` fails (#818) make sure CI fails if `yarn test` fails Co-authored-by: LongYinan --- cli/src/new/ci-template.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/src/new/ci-template.ts b/cli/src/new/ci-template.ts index 852a736a..6e50df49 100644 --- a/cli/src/new/ci-template.ts +++ b/cli/src/new/ci-template.ts @@ -380,6 +380,7 @@ jobs: image: ghcr.io/napi-rs/napi-rs/nodejs:aarch64-\${{ matrix.node }} options: -v \${{ github.workspace }}:/build -w /build run: | + set -e yarn test ls -la @@ -420,6 +421,7 @@ jobs: image: multiarch/alpine:aarch64-latest-stable options: -v \${{ github.workspace }}:/build -w /build run: | + set -e apk add nodejs npm yarn yarn test @@ -463,6 +465,7 @@ jobs: image: ghcr.io/napi-rs/napi-rs/nodejs:armhf-\${{ matrix.node }} options: -v \${{ github.workspace }}:/build -w /build run: | + set -e yarn test ls -la