Skip to content

fix(ci): fixes test coverage issue #4

fix(ci): fixes test coverage issue

fix(ci): fixes test coverage issue #4

Workflow file for this run

name: CI / Tests & Coverage

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

(Line: 8, Col: 5): 'branches' is already defined
# Trigger workflow
on:
push:
branches: [main, develop] # Run on main & develop
pull_request: # Run on all PRs targeting any branch
branches: ["*"]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run Vitest
run: npm run test -- --coverage
- name: Upload Coverage
uses: actions/upload-artifact@v4
if: always()
with:
name: coverage-report
path: coverage/