Update eslint to version 9.9.1 #296
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: Tests | |
'on': | |
push: | |
pull_request: | |
env: | |
BROWSER_STACK_ACCESS_KEY: '${{ secrets.BROWSER_STACK_ACCESS_KEY }}' | |
BROWSER_STACK_USERNAME: '${{ secrets.BROWSER_STACK_USERNAME }}' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Node ${{ matrix.node }} | |
strategy: | |
matrix: | |
node: | |
- '14' | |
- '16' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: npm install | |
- run: npm test | |
test-targets: | |
runs-on: ubuntu-latest | |
name: ${{ matrix.targets.name }} | |
strategy: | |
matrix: | |
targets: | |
- name: 'Lint' | |
target: 'lint' | |
- name: 'Coverage' | |
target: 'coverage' | |
- name: 'Browser - IE11' | |
target: 'test-browser-ie11' | |
- name: 'Chrome Headless' | |
target: 'test-headless' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16' | |
- run: npm install | |
- run: npm run ${{ matrix.targets.target }} | |
- name: Upload coverage | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
if: ${{ matrix.targets.target == 'coverage' }} |