-
Notifications
You must be signed in to change notification settings - Fork 1
104 lines (80 loc) · 2.39 KB
/
Copy pathci.yml
File metadata and controls
104 lines (80 loc) · 2.39 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
name: CI
on:
pull_request:
push:
branches:
- '**'
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
workspace:
name: MOS Workspace
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: package-lock.json
- name: Setup npm
run: npm install -g npm@11.2.0
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run test:unit
- name: Check app catalog and advisory feed
run: npm run apps:catalog:check
# The guard compares against the catalog installed boxes actually read, so
# the default shallow checkout has to be given that branch first.
- name: Fetch published catalog branch
run: git fetch --depth=1 origin main
- name: Check app package versions against the published catalog
run: npm run apps:version:check -- --require-baseline
- name: Validate app privacy reviews
run: npm run apps:privacy:check
- name: Monitor stale reviews and advisories
run: npm run apps:privacy:monitor
- name: Typecheck Suite Manager
run: npm run typecheck
- name: Build Suite Manager client
run: npm run build:client
- name: Render installer contract
run: npm run install:render -- --target json
- name: Check release metadata
run: npm run release:check
site:
name: MOS Site
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: site/package-lock.json
- name: Setup npm
run: npm install -g npm@11.2.0
- name: Install site dependencies
run: npm ci
working-directory: site
- name: Build MOS site
run: npm run build
working-directory: site
shellcheck:
name: Shell Scripts Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@2.0.0
with:
scandir: ./scripts