26
26
jobs :
27
27
# one run
28
28
one_run :
29
- runs-on : ubuntu-latest
29
+ runs-on : ubuntu-22.04
30
30
steps :
31
31
- name : Cancel Previous Runs
32
32
35
35
36
36
# install dependencies
37
37
install :
38
- runs-on : ubuntu-latest
38
+ runs-on : ubuntu-22.04
39
39
needs : one_run
40
40
steps :
41
41
- uses : actions/checkout@v3
50
50
# build ngx-bootstrap
51
51
build :
52
52
needs : install
53
- runs-on : ubuntu-latest
53
+ runs-on : ubuntu-22.04
54
54
steps :
55
55
- uses : actions/checkout@v3
56
56
- uses : actions/cache@v3
@@ -61,14 +61,17 @@ jobs:
61
61
with :
62
62
path : ${{ env.CACHE_DIST_PATH }}
63
63
key : dist-${{ github.run_id }}
64
+ # - run: |
65
+ # npx nx build ngx-bootstrap --runner=cloud --configuration=production
66
+ # npx nx build --runner=cloud --configuration=production
64
67
- run : |
65
- npx nx build ngx-bootstrap --runner=cloud -- configuration=production
66
- npx nx build --runner=cloud --configuration=production
68
+ npx nx build ngx-bootstrap --configuration=production
69
+ npx nx prerender --configuration=production
67
70
68
71
69
72
# run unit tests
70
73
unit_tests_with_coverage :
71
- runs-on : ubuntu-latest
74
+ runs-on : ubuntu-22.04
72
75
needs : build
73
76
steps :
74
77
- uses : actions/checkout@v3
@@ -80,25 +83,27 @@ jobs:
80
83
with :
81
84
path : ${{ env.CACHE_DIST_PATH }}
82
85
key : dist-${{ github.run_id }}
83
- - run : npm test -- --runner=cloud --codeCoverage
86
+ # - run: npm test -- --runner=cloud --codeCoverage
87
+ - run : npm test -- --codeCoverage
84
88
- run : npx codecov ./coverage/
85
89
continue-on-error : true
86
90
87
91
# run linting
88
92
linting :
89
- runs-on : ubuntu-latest
93
+ runs-on : ubuntu-22.04
90
94
needs : install
91
95
steps :
92
96
- uses : actions/checkout@v3
93
97
- uses : actions/cache@v3
94
98
with :
95
99
path : ${{ env.CACHE_NODE_MODULES_PATH }}
96
100
key : node_modules-${{ hashFiles('**/package-lock.json') }}
97
- - run : npm run lint -- --runner=cloud
101
+ # - run: npm run lint -- --runner=cloud
102
+ - run : npm run lint --
98
103
99
104
# firebase deploy preview
100
105
firebase_preview :
101
- runs-on : ubuntu-latest
106
+ runs-on : ubuntu-22.04
102
107
needs : build
103
108
outputs :
104
109
output_url : ${{ steps.firebase_hosting_preview.outputs.details_url }}
@@ -121,7 +126,7 @@ jobs:
121
126
# run playwright
122
127
e2e_smoke :
123
128
name : e2e smoke (${{ matrix.shard }}/${{ strategy.job-total }})
124
- runs-on : ubuntu-latest
129
+ runs-on : ubuntu-22.04
125
130
needs : [install, build, firebase_preview]
126
131
127
132
strategy :
@@ -146,13 +151,13 @@ jobs:
146
151
147
152
- name : smoke e2e on firebase
148
153
if : ${{ needs.firebase_preview.outputs.output_url }}
149
- run : PLAYWRIGHT_TEST_BASE_URL="${{ needs.firebase_preview.outputs.output_url }}/ngx-bootstrap/" npx nx run ngx-bootstrap-docs-e2e:e2e --pwProject=chromium-integration --skipServe --shard=${{ matrix.shard }}/${{ strategy.job-total }}
154
+ run : PLAYWRIGHT_TEST_BASE_URL="${{ needs.firebase_preview.outputs.output_url }}/ngx-bootstrap/" npx nx run ngx-bootstrap-docs-e2e:e2e --pwProject=chromium-integration --skipServe --shard=${{ matrix.shard }}/${{ strategy.job-total }}
150
155
151
156
- name : smoke e2e local
152
157
if : ${{ !needs.firebase_preview.outputs.output_url }}
153
158
run : npx nx run ngx-bootstrap-docs-e2e:e2e --pwProject=chromium-integration --shard=${{ matrix.shard }}/${{ strategy.job-total }}
154
159
155
- - uses : actions/upload-artifact@v3
160
+ - uses : actions/upload-artifact@v4
156
161
if : always()
157
162
with :
158
163
name : playwright-report-smoke-${{ matrix.shard }}_${{ strategy.job-total }}
@@ -161,7 +166,7 @@ jobs:
161
166
162
167
e2e_full :
163
168
name : e2e full
164
- runs-on : ubuntu-latest
169
+ runs-on : ubuntu-22.04
165
170
needs : [e2e_smoke]
166
171
167
172
strategy :
@@ -194,7 +199,7 @@ jobs:
194
199
continue-on-error : true
195
200
run : npx nx run ngx-bootstrap-docs-e2e:e2e --pwProject=chromium-full --shard=${{ matrix.shard }}/${{ strategy.job-total }}
196
201
197
- - uses : actions/upload-artifact@v3
202
+ - uses : actions/upload-artifact@v4
198
203
if : always()
199
204
with :
200
205
name : playwright-report-full-${{ matrix.shard }}_${{ strategy.job-total }}
0 commit comments