From 7266504a8a6883836b2d14427a7d6c108927d4fc Mon Sep 17 00:00:00 2001 From: marocchino Date: Mon, 29 Mar 2021 07:35:19 +0900 Subject: [PATCH] ci: reserve test fail status --- .github/workflows/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 45f7bab..eba3e5f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,11 +12,12 @@ jobs: - uses: actions/checkout@v2 - run: npm ci - run: | + set -o pipefail mkdir -p ./pr echo ${{ github.event.number }} | tee ./pr/number - npm run all | tee ./pr/all_result + npm run all |& tee ./pr/all_result - uses: actions/upload-artifact@v2 - if: ${{ github.event_name == 'pull_request' }} + if: ${{ github.event_name == 'pull_request' && (success() || failure()) }} with: name: all path: pr/