Skip to content

Restructure test files and Eslint improvements #1258

Restructure test files and Eslint improvements

Restructure test files and Eslint improvements #1258

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
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: yarn
- run: yarn test:ci --coverage
# Simple text summary
- name: Coverage Report
if: always()
run: |
echo "### Coverage Report" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
npx c8 report --reporter=text >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
# Upload HTML report
- uses: actions/upload-artifact@v4
if: always()
with:
name: coverage-report
path: coverage/