-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (55 loc) · 1.62 KB
/
Copy pathci.yml
File metadata and controls
58 lines (55 loc) · 1.62 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
name: CI
on:
push:
branches: ['main', 'agent/**']
pull_request:
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
node-version: 22
upload-source: false
- os: ubuntu-latest
node-version: 24
upload-source: true
- os: windows-latest
node-version: 24
upload-source: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: global-template/docgen/package.json
- name: Syntax check
working-directory: global-template/docgen
run: npm run check
- name: Unit and integration tests
if: runner.os != 'Windows'
working-directory: global-template/docgen
run: npm test
- name: Windows launcher, shim, heartbeat, and timeout tests
if: runner.os == 'Windows'
working-directory: global-template/docgen
run: node --test test/windows-runtime.test.mjs
- name: Installer dry run
run: node install.mjs --dry-run --no-link-cli
- name: Upload exact CI source
if: always() && matrix.upload-source
uses: actions/upload-artifact@v4
with:
name: docgen-ci-source
if-no-files-found: error
retention-days: 3
path: |
global-template/docgen
global-template/docgen/project-template
install.mjs
VERSION