fix: package.json to reduce vulnerabilities #1566
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] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 17 | |
cache: npm | |
cache-dependency-path: | | |
package.json | |
packages/*/package.json | |
- run: npm i | |
- run: npm run lint | |
karma: | |
needs: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 17 | |
cache: npm | |
cache-dependency-path: | | |
package.json | |
packages/*/package.json | |
- run: npm i | |
- run: npx playwright install-deps | |
- run: npm run ci-karma | |
tests: | |
needs: lint | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
node: | |
- 14.15 | |
- 16.11 | |
- 17 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: npm | |
cache-dependency-path: | | |
package.json | |
packages/*/package.json | |
- run: npm i | |
- run: npm run ci-tests |