-
Notifications
You must be signed in to change notification settings - Fork 4
63 lines (47 loc) · 1.39 KB
/
Copy pathci.yml
File metadata and controls
63 lines (47 loc) · 1.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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: pnpm
- run: pnpm install --frozen-lockfile
- name: Check formatting
run: pnpm format:check
- name: Type-check
run: pnpm typecheck
- name: Test host app
run: pnpm test
- name: Test devtools package
run: pnpm test:devtools
- name: Build Angular host app (SSR)
run: pnpm build
- name: Build Chrome extension
run: pnpm extension:build
- name: Build devtools assets package
run: pnpm devtools:build-pkg
- name: Check committed build output is current
run: |
stale=$(git status --porcelain -- extension/ui packages/ng-devtools-assets/dist)
if [ -n "$stale" ]; then
echo "$stale"
echo "::error::Committed build output is stale. Run 'pnpm extension:build && pnpm devtools:build-pkg' and commit the result."
exit 1
fi
- name: Smoke-test the CLI
run: node bin.mjs --help