Move retry logic out of _emitError
into a central place
#1218
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: CI | |
on: | |
push: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
tests: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- desc: 'Browserstack' | |
suite: 'browserstack' | |
- desc: 'Puppeteer' | |
suite: 'puppeteer' | |
- desc: 'Node.js 18' | |
suite: 'node' | |
node: 18 | |
- desc: 'Node.js 20' | |
suite: 'node' | |
node: 20 | |
name: Tests (${{ matrix.desc }}) | |
steps: | |
- name: Check out sources | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Git Clean | |
run: git clean -fxd --exclude=node_modules/ | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node || 20 }} | |
- name: Install dependencies | |
uses: sergioramos/yarn-actions/install@v6 | |
with: | |
frozen-lockfile: true | |
- name: Build | |
uses: sergioramos/yarn-actions/run@v6 | |
with: | |
script: build | |
- name: Lint | |
uses: sergioramos/yarn-actions/run@v6 | |
with: | |
script: lint | |
- name: Test | |
uses: sergioramos/yarn-actions/run@v6 | |
with: | |
script: test-${{ matrix.suite }} | |
env: | |
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} | |
BROWSERSTACK_KEY: ${{ secrets.BROWSERSTACK_KEY }} | |
lint: | |
name: Linter | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check out sources | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Git Clean | |
run: git clean -fxd --exclude=node_modules/ | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node || 20 }} | |
- name: Install dependencies | |
uses: sergioramos/yarn-actions/install@v6 | |
with: | |
frozen-lockfile: true | |
- name: Build | |
uses: sergioramos/yarn-actions/run@v6 | |
with: | |
script: build | |
- name: Lint | |
uses: sergioramos/yarn-actions/run@v6 | |
with: | |
script: lint | |
# @TODO: port this Travis CI automation to GHA one day: | |
# deploy: | |
# provider: npm | |
# email: [email protected] | |
# api_token: | |
# secure: deLv8rCb1nN4vcFCSlPLVLcZJ20vLWNPaAA4PZAUXcQdUFX8mc++qDusS0o3LqdQVIugeOkSBTuKq8GQxOpMahj3U0WDe7Dy+t5xS/kPejr1H4m/VT1A5uRfBLGHgjuQzZH1L/RzAAca7Przx9fNe/1y1+RblDbbE7oOXQWiIUs= | |
# skip_cleanup: true | |
# on: | |
# tags: true | |
# repo: tus/tus-js-client | |
# node_js: 12 |