This repository was archived by the owner on Mar 19, 2025. It is now read-only.
[DEV-1765] Moved to monorepo #59
Workflow file for this run
This file contains hidden or 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: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: 'Install Node' | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '20.x' | |
| - name: 'Install dependencies' | |
| run: npm install | |
| - name: 'Run unit tests' | |
| run: npm run coverage | |
| - name: 'Report coverage' | |
| if: ${{ always() }} # Generate report if tests are failing, too | |
| uses: davelosert/vitest-coverage-report-action@v1 |