Pin browserslist to version 4.22.2 #362
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: Tests | |
'on': | |
push: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-18.04 | |
name: Node ${{ matrix.node }} | |
strategy: | |
matrix: | |
node: | |
- '12' | |
- '14' | |
- '16' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: sudo add-apt-repository -y ppa:inkscape.dev/stable && sudo apt-get update && sudo apt-get install -y inkscape graphicsmagick && inkscape --version | |
- run: npm install | |
- run: npm test | |
test-targets: | |
runs-on: ubuntu-18.04 | |
name: ${{ matrix.targets.name }} | |
strategy: | |
matrix: | |
targets: | |
- name: 'Lint' | |
target: 'lint' | |
- name: 'Coverage' | |
target: 'coverage' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '14' | |
- run: sudo add-apt-repository -y ppa:inkscape.dev/stable && sudo apt-get update && sudo apt-get install -y inkscape graphicsmagick && inkscape --version | |
- 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' }} |