[Snyk] Security upgrade node from 16.13-alpine to 16.20.2-alpine #451
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: | |
karma: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16.13' | |
- run: wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
- run: echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a /etc/apt/sources.list.d/google.list | |
- run: DEBIAN_FRONTEND=noninteractive sudo apt-get update && sudo apt-get install google-chrome-stable -y -qq | |
- run: yarn | |
- run: ./node_modules/.bin/ng test --browsers=ChromeHeadlessCI --no-watch --no-progress | |
jsonvalidation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16.13' | |
- run: npm install -g ajv ajv-cli ajv-formats | |
- run: cd ./src/data && ajv test -s schemas/country.schema -d "countries/*.json" -c ajv-formats --valid --verbose --all-errors | |
- run: cd ./src/data && ajv test -s schemas/country.schema -d "countries/*/*.json" -c ajv-formats --valid --verbose --all-errors |