Restructure test files and Eslint improvements #1259
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: ci | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - run: yarn | |
| - run: yarn prettier --check . | |
| - run: yarn lint | |
| - run: yarn build | |
| test: | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| # Required for PR comments | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| - run: yarn | |
| - run: yarn test:ci --coverage | |
| # Generate PR comment with coverage | |
| - name: Coverage Report | |
| uses: davelosert/vitest-coverage-report-action@v2 | |
| if: always() | |
| with: | |
| json-summary-path: ./coverage/coverage-summary.json | |
| json-final-path: ./coverage/coverage-final.json | |
| # Upload artifacts if you want to view HTML locally | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: coverage-report | |
| path: coverage/ | |
| retention-days: 3 |