-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (37 loc) · 1015 Bytes
/
ci.yml
File metadata and controls
47 lines (37 loc) · 1015 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
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
test:
name: General checks, tests and coverage reporting
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Use a Node.js version compatible with all tasks
uses: actions/setup-node@v6
with:
node-version: 20.19.0
- name: Install dependencies
run: npm ci
- name: Check Node.js engine compatibility
run: npm run check-engine
- name: Perform ESLint check
run: npm run lint
- name: Perform Licenses check
run: npm run check-licenses
- name: Perform dependency check
run: npm run knip
- name: Perform build
run: npm run build-test
- name: Run unit tests
run: npm run coverage
- name: Send report to Coveralls
uses: coverallsapp/github-action@v2
continue-on-error: true # Do not fail the job if coverage reporting fails (e.g. service is down)