Skip to content

Merge pull request #15 from RanielliMontagna/ci/implement-workflow #6

Merge pull request #15 from RanielliMontagna/ci/implement-workflow

Merge pull request #15 from RanielliMontagna/ci/implement-workflow #6

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install dependencies
run: npm install
- name: Run tests with coverage
run: npx vitest --coverage.enabled true
- name: 'Report Coverage'
if: always()
uses: davelosert/vitest-coverage-report-action@v2
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}