diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6587abe..dc7268d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -124,13 +124,11 @@ jobs: run: pnpm run test - name: Upload coverage artifact (if produced) - if: always() + if: success() || failure() uses: actions/upload-artifact@v3 with: name: coverage-report - path: | - coverage - coverage/**/* + path: coverage/ retention-days: 7 build: @@ -184,6 +182,9 @@ jobs: runs-on: ubuntu-latest needs: [ build ] if: github.event_name == 'push' && github.ref == 'refs/heads/main' + permissions: + contents: read + actions: write steps: - uses: actions/checkout@v4