Skip to content

Restructure test files and Eslint improvements #1262

Restructure test files and Eslint improvements

Restructure test files and Eslint improvements #1262

Workflow file for this run

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:
contents: read
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: yarn
- run: yarn test:ci --coverage
- name: Coverage Report
uses: davelosert/vitest-coverage-report-action@v2
if: |
always() &&
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
with:
json-summary-path: ./coverage/coverage-summary.json
json-final-path: ./coverage/coverage-final.json
# Always upload artifacts for manual inspection
- uses: actions/upload-artifact@v4
if: always()
with:
name: coverage-report
path: coverage/
retention-days: 1