Add some sensible timeouts to actions that call out to external servi… #686
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: Saucelabs | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- restructure | |
jobs: | |
build_test: | |
name: Build & Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: 'package.json' | |
cache: 'npm' | |
cache-dependency-path: '**/package-lock.json' | |
- run: npm ci | |
- name: test | |
timeout-minutes: 20 | |
env: | |
CI: true | |
COVERAGE: true | |
FLAKEY: false | |
RUN_SAUCE_LABS: true | |
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }} | |
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }} | |
# Not using `npm test` since it rebuilds source which npm ci has already done | |
run: npm run test:unit |