-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 935 Bytes
/
ci.yml
File metadata and controls
47 lines (37 loc) · 935 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: HDS Lib JS CI
on:
pull_request:
branches:
- '*'
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [22.x, 24.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Lint
run: npm run lint
- name: Run tests with coverage
run: npm run test:coverage:ci
- name: Upload coverage to Codecov
if: matrix.node-version == '24.x'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: healthdatasafe/hds-lib-js
files: ./coverage/lcov.info
fail_ci_if_error: false