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/