-
Notifications
You must be signed in to change notification settings - Fork 1
135 lines (133 loc) · 4.12 KB
/
Copy pathlint.yml
File metadata and controls
135 lines (133 loc) · 4.12 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
name: Lint
concurrency:
group: lint-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
push:
branches: [main]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24
cache: npm
cache-dependency-path: '**/package-lock.json'
- name: Cache Angular
uses: actions/cache@v5
with:
path: .angular/cache
key: ${{ runner.os }}-angular-${{ hashFiles('package-lock.json') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-angular-${{ hashFiles('package-lock.json') }}-
${{ runner.os }}-angular-
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm run test:package-consumer
- run: npm run test:offline-types:nonstrict
test:
runs-on: ubuntu-latest
strategy:
matrix:
project: [demo, kit, photo-editor, scroll-header, scroll-strategies]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24
cache: npm
cache-dependency-path: '**/package-lock.json'
- name: Cache Angular
uses: actions/cache@v5
with:
path: .angular/cache
key: ${{ runner.os }}-angular-${{ hashFiles('package-lock.json') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-angular-${{ hashFiles('package-lock.json') }}-
${{ runner.os }}-angular-
- run: npm ci
- run: npm run build
- run: npm run test -- ${{ matrix.project }} --watch=false
test-actions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24
cache: npm
cache-dependency-path: '**/package-lock.json'
- run: npm ci
- run: npm run test:actions
angular-21-compat:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24.15.0
cache: npm
cache-dependency-path: '**/package-lock.json'
- run: npm ci
- name: Install the Angular 21 compatibility toolchain
run: >-
npm install --no-save --force
@angular/animations@^21.2.0
@angular/build@^21.2.0
@angular/cdk@^21.2.0
@angular/cli@^21.2.0
@angular/common@^21.2.0
@angular/compiler@^21.2.0
@angular/compiler-cli@^21.2.0
@angular/core@^21.2.0
@angular/forms@^21.2.0
@angular/platform-browser@^21.2.0
@angular/platform-browser-dynamic@^21.2.0
@angular/router@^21.2.0
@angular/service-worker@^21.2.0
ng-packagr@^21.2.0
typescript@~5.9.3
- name: Build libraries and consuming demo with Angular 21
run: npm run build
- name: Type-check a consumer against packed Angular 21 artifacts
run: npm run test:package-consumer
e2e:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.57.0-noble
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24
cache: npm
cache-dependency-path: '**/package-lock.json'
- name: Cache Angular
uses: actions/cache@v5
with:
path: .angular/cache
key: ${{ runner.os }}-angular-${{ hashFiles('package-lock.json') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-angular-${{ hashFiles('package-lock.json') }}-
${{ runner.os }}-angular-
- run: npm ci
- name: Run e2e tests
run: npm run e2e
env:
CI: true
HOME: /root
- name: Upload Playwright report
if: failure()
uses: actions/upload-artifact@v4
with:
name: playwright-report
path: playwright-report/
retention-days: 7