-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 831 Bytes
/
test.yml
File metadata and controls
35 lines (29 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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/setup-node@v2.1.4
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@v4
with:
name: coverage-report-${{ matrix.node-version }}
path: coverage/
if-no-files-found: warn
compression-level: 6
overwrite: true
include-hidden-files: false