feat: add option to use posix exit code upon fatal signal #354
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Browser Tests for forked PRs | |
'on': | |
pull_request_target: | |
types: | |
- labeled | |
jobs: | |
test-browser: | |
# TODO: configure to retain build artifacts in `.karma/` dir | |
name: 'Browser Tests' | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
if: contains(github.event.pull_request.labels.*.name, 'run-browser-test') | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
persist-credentials: false | |
- name: 'Cache node_modules' | |
uses: actions/cache@v3 | |
with: | |
path: '~/.npm' | |
key: "ubuntu-latest-node-full-lts-${{ hashFiles('**/package-lock.json') }}" | |
- name: Install Dependencies | |
run: npm ci | |
- name: Run Browser Tests | |
run: npm start test.browser | |
env: | |
SAUCE_USERNAME: '${{secrets.SAUCE_USERNAME}}' | |
SAUCE_ACCESS_KEY: '${{secrets.SAUCE_ACCESS_KEY}}' | |
- name: remove 'run-browser-test' label | |
uses: buildsville/add-remove-label@v2.0.0 | |
if: ${{ always() }} | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
label: run-browser-test | |
type: remove |