@@ -72,13 +72,13 @@ jobs:
72
72
playwright-tests :
73
73
runs-on :
74
74
- codebuild-content-services-be-repo-${{ github.run_id }}-${{ github.run_attempt }}
75
- - instance-size:medium
75
+ - instance-size:large
76
76
- buildspec-override:true
77
77
78
- strategy :
79
- fail-fast : false
80
- matrix :
81
- worker : [1, 2]
78
+ # strategy:
79
+ # fail-fast: false
80
+ # matrix:
81
+ # worker: [1, 2]
82
82
83
83
steps :
84
84
- name : Checkout code
@@ -114,8 +114,10 @@ jobs:
114
114
115
115
# Create the .env file and write the secrets and other variables to it
116
116
{
117
- echo "USER1USERNAME=$USER${{ matrix.worker }}USERNAME"
118
- echo "USER1PASSWORD=$USER${{ matrix.worker }}PASSWORD"
117
+ echo "USER1USERNAME=$USER1USERNAME"
118
+ echo "USER1PASSWORD=$USER1PASSWORD"
119
+ # echo "USER1USERNAME=$USER${{ matrix.worker }}USERNAME"
120
+ # echo "USER1PASSWORD=$USER${{ matrix.worker }}PASSWORD"
119
121
echo "BASE_URL=https://stage.foo.redhat.com:1337"
120
122
echo "CI=true"
121
123
} >> .env
@@ -267,27 +269,27 @@ jobs:
267
269
.github/workflowScripts/waitForBackend.sh
268
270
269
271
- name : Run API Playwright tests
270
- if : ${{ matrix.worker == 1 }}
272
+ # if: ${{ matrix.worker == 1 }}
271
273
working-directory : _playwright-tests
272
274
run : CURRENTS_PROJECT_ID=V4Ri3k CURRENTS_RECORD_KEY=$CURRENTS_RECORD_KEY CURRENTS_CI_BUILD_ID="${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt }}" yarn playwright test
273
275
274
276
- name : Publish API Test Report
275
277
uses : ctrf-io/github-test-reporter@v1
276
278
with :
277
279
report-path : " ./_playwright-tests/playwright-ctrf/playwright-ctrf.json"
278
- if : ${{ matrix.worker == 1 && !cancelled() }}
280
+ # if: ${{ matrix.worker == 1 && !cancelled() }}
279
281
280
282
- name : Store API Test report
281
283
uses : actions/upload-artifact@v4
282
- if : ${{ matrix.worker == 1 && !cancelled() }}
284
+ # if: ${{ matrix.worker == 1 && !cancelled() }}
283
285
with :
284
286
name : playwright-ctrf-backend
285
287
path : ./_playwright-tests/playwright-ctrf
286
288
retention-days : 10
287
289
288
290
- name : Run front-end Playwright tests
289
291
working-directory : content-sources-frontend
290
- run : CURRENTS_PROJECT_ID=V4Ri3k CURRENTS_RECORD_KEY=$CURRENTS_RECORD_KEY CURRENTS_CI_BUILD_ID="${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt }}" xvfb-run yarn playwright test --shard ${{ matrix.worker }}/2
292
+ run : CURRENTS_PROJECT_ID=V4Ri3k CURRENTS_RECORD_KEY=$CURRENTS_RECORD_KEY CURRENTS_CI_BUILD_ID="${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt }}" xvfb-run yarn playwright test --workers 2 # -- shard ${{ matrix.worker }}/2
291
293
292
294
- name : Publish front-end Test Report
293
295
uses : ctrf-io/github-test-reporter@v1
@@ -299,6 +301,7 @@ jobs:
299
301
uses : actions/upload-artifact@v4
300
302
if : ${{ !cancelled() }}
301
303
with :
302
- name : playwright-ctrf-frontend-${{ matrix.worker }}
304
+ # name: playwright-ctrf-frontend-${{ matrix.worker }}
305
+ name : playwright-ctrf-frontend
303
306
path : ./content-sources-frontend/playwright-ctrf
304
307
retention-days : 10
0 commit comments