Vitest #160
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: CI | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: restore dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: restore dependencies | |
uses: bahmutov/npm-install@v1 | |
with: | |
working-directory: e2e | |
- run: npm run lint:all | |
type_check: | |
name: type check | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: restore dependencies | |
uses: bahmutov/npm-install@v1 | |
- run: npm run type-check | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: restore dependencies | |
uses: bahmutov/npm-install@v1 | |
- run: npm run test | |
- name: report coverage | |
if: always() | |
uses: davelosert/vitest-coverage-report-action@v2 | |
e2e: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: restore dependencies | |
uses: bahmutov/npm-install@v1 | |
- run: npm run build | |
- name: restore e2e dependencies | |
uses: bahmutov/npm-install@v1 | |
with: | |
working-directory: e2e | |
- run: npm run e2e | |
working-directory: e2e | |
- name: upload playwright report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: playwright-report | |
path: e2e/playwright-report/ | |
retention-days: 30 |