Migrate from jest to vitest #302
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: Tests | |
on: | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: node:18.17.0 | |
env: | |
DOCKER: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Own all files | |
run: USER=$(/usr/bin/id -run) && chown -R $USER ./ | |
- name: Install dependencies | |
run: npm ci | |
- name: Generate version | |
run: npm run export-version | |
- name: Check that linting succeeds | |
run: npm run lint | |
- name: Check that build succeeds | |
run: npm run build | |
- name: Run unit tests | |
run: npm test | |
# - name: Report test coverage | |
# uses: ArtiomTr/[email protected] |