-
Notifications
You must be signed in to change notification settings - Fork 170
49 lines (38 loc) · 1 KB
/
coverage.yml
File metadata and controls
49 lines (38 loc) · 1 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Node.js CI Tests and Coverage
# Controls when the workflow will run on any branch
on:
push:
branches:
- main
pull_request:
# Allows Coverage to be written back as a PR comment
permissions:
pull-requests: write
# Define the jobs for this workflow
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
pull-requests: write
strategy:
matrix:
node-version: [22, 24, 25]
steps:
- name: Checkout repository
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Set up Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Run tests
run: npm run test
- name: Codecov
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
with:
use_oidc: true