forked from santoshyadavdev/angular-devtools
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (60 loc) · 1.77 KB
/
Copy pathci.yml
File metadata and controls
79 lines (60 loc) · 1.77 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
# nx-set-shas reads previous workflow runs to find the last green main commit
actions: 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
with:
fetch-depth: 0
persist-credentials: false
- uses: ./.github/actions/setup
- uses: nrwl/nx-set-shas@v4
- name: Check formatting
run: pnpm format:check
- name: Validate agent skills and roles
run: pnpm skills:check
- name: Type-check
run: pnpm typecheck
- name: Test and build affected projects
run: pnpm exec nx affected -t test build
- name: Test devtools package
run: pnpm test:devtools
- name: Test devtools panel
run: pnpm test:panel
- name: Build Chrome extension
run: pnpm extension:build
- name: Check committed build output is current
run: |
stale=$(git status --porcelain -- extension/ui)
if [ -n "$stale" ]; then
echo "$stale"
echo "::error::Committed build output is stale. Run 'pnpm extension:build' and commit the result."
exit 1
fi
- name: Smoke-test the CLI
run: node bin.mjs --help
axe:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: ./.github/actions/setup
- name: Install Chromium
run: pnpm exec playwright install --with-deps chromium
- name: Check the panel with axe
run: pnpm test:axe