Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Adds jobs for testing webkit and webkit-webworker (#487)
Browse files Browse the repository at this point in the history
To use in a project, declare npm scripts similar to `test:firefox` and `test:firefox-webworker`:

```js
// package.json
// ... other stuff
  "scripts": {
    // ... other stuff
    "test:firefox": "aegir test -t browser -f ./dist/test/browser.js -- --browser firefox",
    "test:firefox-webworker": "aegir test -t webworker -f ./dist/test/browser.js -- --browser firefox",
    "test:webkit": "aegir test -t browser -f ./dist/test/browser.js -- --browser webkit",
    "test:webkit-webworker": "aegir test -t webworker -f ./dist/test/browser.js -- --browser webkit",
  }
// ... other stuff
```
  • Loading branch information
achingbrain authored Mar 15, 2023
1 parent c2b434f commit 46481dc
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion templates/.github/workflows/js-test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,42 @@ jobs:
with:
flags: firefox-webworker

test-webkit:
needs: check
runs-on: ${{ matrix.os }}
matrix:
os: [ubuntu-latest, macos-latest]
node: [lts/*]
fail-fast: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present test:webkit
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
with:
flags: webkit

test-webkit:
needs: check
runs-on: ${{ matrix.os }}
matrix:
os: [ubuntu-latest, macos-latest]
node: [lts/*]
fail-fast: true
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
- uses: ipfs/aegir/actions/cache-node-modules@master
- run: npm run --if-present test:webkit-webworker
- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
with:
flags: webkit-webworker

test-electron-main:
needs: check
runs-on: ubuntu-latest
Expand Down Expand Up @@ -122,7 +158,7 @@ jobs:
flags: electron-renderer

release:
needs: [test-node, test-chrome, test-chrome-webworker, test-firefox, test-firefox-webworker, test-electron-main, test-electron-renderer]
needs: [test-node, test-chrome, test-chrome-webworker, test-firefox, test-firefox-webworker, test-webkit, test-webkit-webworker, test-electron-main, test-electron-renderer]
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/${{{ github.default_branch }}}'
steps:
Expand Down

0 comments on commit 46481dc

Please sign in to comment.