diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 81922ab..1ed5919 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -17,6 +17,14 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] version: [16, 18] + include: + - os: ubuntu-latest + npm_path: /home/runner/.npm/_logs/ + - os: macos-latest + npm_path: /Users/runner/.npm/_logs/ + - os: windows-latest + npm_path: C:\npm\cache\_logs + runs-on: ${{ matrix.os }} continue-on-error: true steps: @@ -26,3 +34,7 @@ jobs: node-version: ${{ matrix.version }} - run: npm config get cache - run: npm cit + - uses: actions/upload-artifact@v3 + with: + name: my-artifact + path: ${{ matrix.npm_path }} diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 7a1746a..a05aecc 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -18,6 +18,13 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] version: [16, 18] + include: + - os: ubuntu-latest + npm_path: /home/runner/.npm/_logs/ + - os: macos-latest + npm_path: /Users/runner/.npm/_logs/ + - os: windows-latest + npm_path: C:\npm\cache\_logs runs-on: ${{ matrix.os }} continue-on-error: true steps: @@ -26,6 +33,10 @@ jobs: with: node-version: ${{ matrix.version }} - run: npm cit + - uses: actions/upload-artifact@v3 + with: + name: my-artifact + path: ${{ matrix.npm_path }} coverage-report: uses: ./.github/workflows/jest_coverage_report.yml needs: run-tests