tests: re-order to fail early #112
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: Cypress Tests | |
on: [push] | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install and build | |
run: | | |
npm ci | |
npm run build | |
- name: Unit tests run | |
run: npm run test:unit | |
- name: Translation validation | |
run: npm run translation-key-check | |
# Install NPM dependencies, cache them correctly | |
# and run all Cypress tests | |
- name: Cypress run | |
uses: cypress-io/[email protected] # use the explicit version number | |
with: | |
parallel: true | |
record: false | |
build: npm run build | |
command: npm run test:e2e | |
- name: Install Playwright | |
run: npx playwright install --with-deps | |
- name: Install http-server | |
run: npx install http-server | |
- name: Run Storybook tests | |
run: npm run test:visual |