Skip to content

Commit

Permalink
Refactor coverage.yml to update coverage check command and vitest.con…
Browse files Browse the repository at this point in the history
…fig.js to update test include and exclude paths
  • Loading branch information
thadeucbr committed Sep 30, 2024
1 parent 8389fe6 commit 2df7342
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
name: Test Coverage
name: Coverage

on:
push:
branches:
- main
- developer
pull_request:
branches:
- main
- developer

jobs:
test:
coverage:
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
node-version: '20.17.0'

- name: Install dependencies
run: npm ci
run: npm install

- name: Run tests with coverage
run: npm run test -- --coverage

- name: Generate test coverage
run: npm run coverage

0 comments on commit 2df7342

Please sign in to comment.