Skip to content

Commit

Permalink
Set up Sauce Labs for unit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Jan 17, 2024
1 parent bcbde22 commit e004fd7
Show file tree
Hide file tree
Showing 5 changed files with 2,950 additions and 145 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Tests
on:
workflow_call:
workflow_call: null
jobs:
e2e:
name: E2E Tests
Expand All @@ -22,16 +22,13 @@ jobs:
fuzz:
name: Fuzz Tests
runs-on: ubuntu-latest

steps:
- name: Git checkout
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- run: npm ci
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 1
Expand All @@ -42,20 +39,27 @@ jobs:
strategy:
fail-fast: false
matrix:
browser: [chromium, webkit, firefox]

browser:
- firefox
steps:
- name: Git checkout
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- uses: saucelabs/sauce-connect-action@v2
with:
tunnelName: github-action-tunnel
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
- run: npm ci
- run: npx playwright install --with-deps
- run: npm run lint
- run: npm run test:unit -w quill || npm run test:unit -w quill || npm run test:unit -w quill
- run: npm run test:unit -w quill || npm run test:unit -w quill || npm run
test:unit -w quill
env:
BROWSER: ${{ matrix.browser }}
PROVIDER: Sauce Labs
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
Loading

0 comments on commit e004fd7

Please sign in to comment.