Skip to content

Commit

Permalink
put npm logs in artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
BassemNKhalil committed Nov 16, 2023
1 parent 17e72cd commit 88cd3ec
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
11 changes: 11 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 88cd3ec

Please sign in to comment.