Skip to content

Commit

Permalink
chore: code review
Browse files Browse the repository at this point in the history
  • Loading branch information
TaylorHo committed Apr 3, 2024
1 parent 4514718 commit 8e3d4ed
Show file tree
Hide file tree
Showing 13 changed files with 2,044 additions and 2,389 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
matrix:
# See https://endoflife.date/nodejs
node-version:
- '10'
- '12'
- '14'
- '16'
- '18'
- '20'
Expand Down Expand Up @@ -40,7 +43,7 @@ jobs:
# See https://dev.to/ayomiku222/how-to-cache-playwright-browser-on-github-actions-51o6
- name: Cache playwright binaries
uses: actions/cache@v3
uses: actions/cache@v4
id: playwright-cache
with:
path: |
Expand All @@ -58,8 +61,11 @@ jobs:
run: npx playwright install-deps
if: matrix.browser == 'webkit'

- name: Generate mock audit report (default options)
run: cat ${{ github.workspace }}/.playwright/fixtures/npm-audit.json | ./src/index.js --folder ${{ github.workspace }}/.reports --file npm-audit.html
- name: Generate mock audit report for Node v10 ~ v14 (default options)
run: cat ${{ github.workspace }}/.playwright/fixtures/npm-audit-v10.json | node ./src/index.js --folder ${{ github.workspace }}/ --file npm-audit-v10.html --title playwright-test

- name: Generate mock audit report for Node v16 ~ lts (default options)
run: cat ${{ github.workspace }}/.playwright/fixtures/npm-audit-v16.json | node ./src/index.js --folder ${{ github.workspace }}/ --file npm-audit-v16.html --title playwright-test

- name: Run Playwright tests for ${{ matrix.browser }}
env:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,6 @@ dist
/playwright-report/
/blob-report/
/playwright/.cache/

# Extra Ignores
*.html
File renamed without changes.

0 comments on commit 8e3d4ed

Please sign in to comment.