Repository navigation
69 lines (64 loc) · 1.84 KB
/
Copy pathci.yml
File metadata and controls
69 lines (64 loc) · 1.84 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
66
67
68
69
name: CI
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Node.js ${{ matrix.node }}
runs-on: ubuntu-24.04
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
node:
- 22.x
- 24.x
steps:
- name: Check out the repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node }}
package-manager-cache: false
- name: Use the locked npm CLI
run: npm install --global npm@11.19.1
- name: Install locked dependencies
run: npm ci --no-audit --no-fund
- name: Build
run: npm run build
- name: Test
run: npm test
- name: Run integration tests
run: npm run test:integration
quality:
name: Release-quality checks
needs: test
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- name: Check out the repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Use Node.js 24
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24.20.0
package-manager-cache: false
- name: Use the locked npm CLI
run: npm install --global npm@11.19.1
- name: Install locked dependencies
run: npm ci --no-audit --no-fund
- name: Lint
run: npm run lint
- name: Validate workflows
run: npm run check:workflows
- name: Verify the npm candidate
run: npm run pack:check