Y24-149 exhaust samples moved to destroyed location #4443
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: | |
branches: | |
- develop | |
- master | |
pull_request: | |
branches: | |
- develop | |
- master | |
jobs: | |
prettier: | |
name: Check format with prettier | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Install dependencides | |
run: >- | |
npm ci --legacy-peer-deps | |
- name: Run npm pretty | |
run: >- | |
npm run pretty | |
eslint: | |
name: Lint with ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Install dependencides | |
run: >- | |
npm ci --legacy-peer-deps | |
- name: Lint using ESLint | |
run: >- | |
npm run lint | |
test: | |
name: Run unit tests using Vitest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Install dependencides | |
run: >- | |
npm ci --legacy-peer-deps | |
- name: Run unit tests | |
run: >- | |
npm run test:unit | |
cypress: | |
name: Run Cypress tests | |
runs-on: ubuntu-latest | |
container: | |
image: cypress/browsers:node16.17.0-chrome106 | |
options: --user 1001 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- name: Install dependencides | |
run: >- | |
npm ci --legacy-peer-deps | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
start: npm run start:host | |
wait-on: http://localhost:5173/ | |
spec: "tests/e2e/**/*" | |
config-file: cypress.config.js | |
config: video=false | |
install: false | |
browser: chrome | |
# after the test run completes | |
# store any screenshots | |
# NOTE: screenshots will be generated only if E2E test failed | |
# thus we store screenshots only on failures | |
# Alternative: create and commit an empty cypress/screenshots folder | |
# to always have something to upload | |
- uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: tests/e2e/screenshots |