chore: Teste uso do coverage no workflow #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Tester ⚗️" | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18, 20, 22] | |
steps: | |
- name: 📚 Checkout | |
uses: actions/checkout@v2 | |
- name: 🟢 Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: 🔧 Install dependencies | |
run: npm install | |
- name: 🚀 Run tests with coverage | |
run: npx vitest run --coverage | |
- name: 📊 Upload coverage report | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: coverage-report | |
path: coverage/ |