-
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 978 Bytes
/
main.yml
File metadata and controls
49 lines (40 loc) · 978 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
48
49
name: CI Build
on:
# Trigger the workflow on push or pull request,
# but only for the main branch on Push and any branches on PR
push:
branches:
- main
pull_request:
branches:
- "**"
env:
CI: true
jobs:
run:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Clone repository
uses: actions/checkout@v6
with:
fetch-depth: 3
- name: Set Node.js version
uses: actions/setup-node@v6
with:
node-version: 24
cache: "npm"
- run: node --version
- run: npm --version
- name: Install npm dependencies
run: npm install
- name: Build Library
run: npm run build
- name: Run Unit Tests
run: npm run test
- name: Upload test coverage to Codecov
uses: codecov/codecov-action@v6
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}