Skip to content

Commit

Permalink
refactor: playwright specs & nodejs testing strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
uchilaka committed Apr 2, 2024
1 parent aaca710 commit 98c3995
Show file tree
Hide file tree
Showing 11 changed files with 2,049 additions and 490 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- run: npm install --ignore-scripts
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
13 changes: 9 additions & 4 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
branches:
- main
pull_request:
branches: [ main, master ]

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['12', '14', '16', '18', 'lts/*']
name: Node ${{ matrix.node-version }} Tests
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
Expand All @@ -24,4 +29,4 @@ jobs:
with:
name: playwright-report
path: playwright-report/
retention-days: 30
retention-days: 14
11 changes: 6 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ dist
.idea/
.vscode/
*.code-workspace
.tool-versions
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
.reports/
.tool-versions
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/

0 comments on commit 98c3995

Please sign in to comment.