2626jobs :
2727 # one run
2828 one_run :
29- runs-on : ubuntu-latest
29+ runs-on : ubuntu-22.04
3030 steps :
3131 - name : Cancel Previous Runs
3232 uses : styfle/cancel-workflow-action@0.11.0
3535
3636 # install dependencies
3737 install :
38- runs-on : ubuntu-latest
38+ runs-on : ubuntu-22.04
3939 needs : one_run
4040 steps :
4141 - uses : actions/checkout@v3
5050 # build ngx-bootstrap
5151 build :
5252 needs : install
53- runs-on : ubuntu-latest
53+ runs-on : ubuntu-22.04
5454 steps :
5555 - uses : actions/checkout@v3
5656 - uses : actions/cache@v3
@@ -61,14 +61,17 @@ jobs:
6161 with :
6262 path : ${{ env.CACHE_DIST_PATH }}
6363 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
6467 - 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
6770
6871
6972 # run unit tests
7073 unit_tests_with_coverage :
71- runs-on : ubuntu-latest
74+ runs-on : ubuntu-22.04
7275 needs : build
7376 steps :
7477 - uses : actions/checkout@v3
@@ -80,25 +83,27 @@ jobs:
8083 with :
8184 path : ${{ env.CACHE_DIST_PATH }}
8285 key : dist-${{ github.run_id }}
83- - run : npm test -- --runner=cloud --codeCoverage
86+ # - run: npm test -- --runner=cloud --codeCoverage
87+ - run : npm test -- --codeCoverage
8488 - run : npx codecov ./coverage/
8589 continue-on-error : true
8690
8791 # run linting
8892 linting :
89- runs-on : ubuntu-latest
93+ runs-on : ubuntu-22.04
9094 needs : install
9195 steps :
9296 - uses : actions/checkout@v3
9397 - uses : actions/cache@v3
9498 with :
9599 path : ${{ env.CACHE_NODE_MODULES_PATH }}
96100 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 --
98103
99104 # firebase deploy preview
100105 firebase_preview :
101- runs-on : ubuntu-latest
106+ runs-on : ubuntu-22.04
102107 needs : build
103108 outputs :
104109 output_url : ${{ steps.firebase_hosting_preview.outputs.details_url }}
@@ -121,7 +126,7 @@ jobs:
121126 # run playwright
122127 e2e_smoke :
123128 name : e2e smoke (${{ matrix.shard }}/${{ strategy.job-total }})
124- runs-on : ubuntu-latest
129+ runs-on : ubuntu-22.04
125130 needs : [install, build, firebase_preview]
126131
127132 strategy :
@@ -146,13 +151,13 @@ jobs:
146151
147152 - name : smoke e2e on firebase
148153 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 }}
150155
151156 - name : smoke e2e local
152157 if : ${{ !needs.firebase_preview.outputs.output_url }}
153158 run : npx nx run ngx-bootstrap-docs-e2e:e2e --pwProject=chromium-integration --shard=${{ matrix.shard }}/${{ strategy.job-total }}
154159
155- - uses : actions/upload-artifact@v3
160+ - uses : actions/upload-artifact@v4
156161 if : always()
157162 with :
158163 name : playwright-report-smoke-${{ matrix.shard }}_${{ strategy.job-total }}
@@ -161,7 +166,7 @@ jobs:
161166
162167 e2e_full :
163168 name : e2e full
164- runs-on : ubuntu-latest
169+ runs-on : ubuntu-22.04
165170 needs : [e2e_smoke]
166171
167172 strategy :
@@ -194,7 +199,7 @@ jobs:
194199 continue-on-error : true
195200 run : npx nx run ngx-bootstrap-docs-e2e:e2e --pwProject=chromium-full --shard=${{ matrix.shard }}/${{ strategy.job-total }}
196201
197- - uses : actions/upload-artifact@v3
202+ - uses : actions/upload-artifact@v4
198203 if : always()
199204 with :
200205 name : playwright-report-full-${{ matrix.shard }}_${{ strategy.job-total }}
0 commit comments