wip: starting to add validate and compress to CI #7
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: Run tests | |
on: [push] | |
jobs: | |
all-tests: | |
runs-on: ubuntu-latest | |
# Stop the occasional rogue instance before the 6h GitHub limit | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install everything | |
run: npm install | |
- name: Run lint and spec tests | |
run: npm run-script ci:test | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
install: false | |
start: | | |
npm start | |
wait-on: "http://localhost:4200/assets/data/fr/v1/options.json" | |
wait-on-timeout: 180 | |
command: npm run-script cypress:run | |
- name: Run validate to make sure the data is valid | |
run: | | |
npm run-script generate-schemas | |
npm run-script validate | |
- name: Compress the data files and make sure they didn't change | |
run: | | |
npm run-script compress |