Skip to content

Merge pull request #122 from okaestne/patch-1 #458

Merge pull request #122 from okaestne/patch-1

Merge pull request #122 from okaestne/patch-1 #458

Workflow file for this run

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