ci: reserve test fail status

This commit is contained in:
marocchino 2021-03-29 07:35:19 +09:00 committed by GitHub
parent 6ccac47713
commit 7266504a8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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