-
Notifications
You must be signed in to change notification settings - Fork 2
147 lines (118 loc) · 4.14 KB
/
Copy pathci.yml
File metadata and controls
147 lines (118 loc) · 4.14 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
name: CI
on:
pull_request:
push:
branches:
- "**"
tags:
- "v*"
permissions:
contents: read
jobs:
quality:
name: Quality and release metadata
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out the repository
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- name: Use Node.js 22
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "22"
package-manager-cache: false
- name: Install and verify npm 10.9.8
shell: bash
run: |
npm install --global --ignore-scripts npm@10.9.8
test "$(npm --version)" = "10.9.8"
- name: Install pinned dependencies without lifecycle scripts
run: npm ci --ignore-scripts
- name: Run lint, release-sync checks, and tests
run: npm run check
- name: Audit production dependencies
run: npm audit --audit-level=high
- name: Preview the npm package
run: npm pack --dry-run
web-quality:
name: Hosted web quality
runs-on: ubuntu-latest
timeout-minutes: 10
defaults:
run:
working-directory: web
steps:
- name: Check out the repository
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- name: Use Node.js 22
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "22"
package-manager-cache: false
- name: Install and verify npm 10.9.8
shell: bash
run: |
npm install --global --ignore-scripts npm@10.9.8
test "$(npm --version)" = "10.9.8"
- name: Install pinned web dependencies without lifecycle scripts
run: npm ci --ignore-scripts
- name: Lint the hosted web app
run: npm run lint
- name: Type-check the hosted web app
run: npm run typecheck
- name: Build the native Vercel application
run: npm run build:vercel
- name: Build and test the rollback hosting application
run: npm test
- name: Audit hosted web production dependencies
run: npm audit --audit-level=high
windows-bootstrap:
name: Native Windows bootstrap
runs-on: windows-latest
timeout-minutes: 10
steps:
- name: Check out the repository
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
persist-credentials: false
- name: Use Node.js 22
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "22"
package-manager-cache: false
- name: Parse the installer with Windows PowerShell 5.1
shell: powershell
run: |
$tokens = $null
$errors = $null
[System.Management.Automation.Language.Parser]::ParseFile(
(Resolve-Path "web/public/install.ps1"),
[ref]$tokens,
[ref]$errors
) | Out-Null
if ($errors.Count -ne 0) {
$errors | ForEach-Object { Write-Error $_.Message }
throw "Windows PowerShell 5.1 could not parse install.ps1."
}
- name: Test the native Windows PowerShell bootstrap
run: node --test test/install-powershell-script.test.js
- name: Test the native Windows Command Prompt bootstrap
run: node --test test/install-cmd-script.test.js
- name: Test the native Windows browser launcher
run: node --test test/browser.test.js
- name: Test the native Windows OAuth launcher
run: >-
node --test
--test-name-pattern="current Node runtime for Windows npm launchers|hides synchronous process-launch errors"
test/oauth.test.js
- name: Test the Git Bash portable runtime handoff
shell: bash
env:
RELMIO_TEST_POSIX_SHELL: bash
run: >-
node --test --test-name-pattern="temporary Windows Node runtime"
test/install-script.test.js