-
Notifications
You must be signed in to change notification settings - Fork 84
65 lines (59 loc) · 2.04 KB
/
Copy pathci.yml
File metadata and controls
65 lines (59 loc) · 2.04 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
node-version: [24.x]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- name: Lint
if: matrix.node-version == '24.x'
run: npm run lint --if-present
- name: Build complete distribution
if: matrix.node-version == '24.x'
run: npm run build --if-present
- name: Build Node.js entry points on supported LTS lines
if: matrix.node-version != '24.x'
run: |
npm run build:cjs
npm run build:esm
npm run build:pkgjson
npm run build:cli
- name: Test complete compiled runtime
if: matrix.node-version == '24.x'
run: npm run test:runtime
- name: Test Node.js compiled runtime
if: matrix.node-version != '24.x'
run: npm run test:runtime -- --skip-umd
- name: Test packed npm artifact
if: matrix.node-version == '24.x'
run: npm run test:package
- run: npm test
env:
CI: true
- name: Build documentation
if: matrix.node-version == '24.x'
run: npm run docs:build
- name: Upload coverage to Codecov
if: matrix.node-version == '24.x'
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
fail_ci_if_error: false