Skip to content

Commit 99cd5d4

Browse files
committed
CI(test): testing
1 parent 3551c37 commit 99cd5d4

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/playwright-actions.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ jobs:
7272
playwright-tests:
7373
runs-on:
7474
- codebuild-content-services-be-repo-${{ github.run_id }}-${{ github.run_attempt }}
75-
- instance-size:medium
75+
- instance-size:large
7676
- buildspec-override:true
7777

78-
strategy:
79-
fail-fast: false
80-
matrix:
81-
worker: [1, 2]
78+
# strategy:
79+
# fail-fast: false
80+
# matrix:
81+
# worker: [1, 2]
8282

8383
steps:
8484
- name: Checkout code
@@ -114,8 +114,10 @@ jobs:
114114
115115
# Create the .env file and write the secrets and other variables to it
116116
{
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"
119121
echo "BASE_URL=https://stage.foo.redhat.com:1337"
120122
echo "CI=true"
121123
} >> .env
@@ -267,27 +269,27 @@ jobs:
267269
.github/workflowScripts/waitForBackend.sh
268270
269271
- name: Run API Playwright tests
270-
if: ${{ matrix.worker == 1 }}
272+
# if: ${{ matrix.worker == 1 }}
271273
working-directory: _playwright-tests
272274
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
273275

274276
- name: Publish API Test Report
275277
uses: ctrf-io/github-test-reporter@v1
276278
with:
277279
report-path: "./_playwright-tests/playwright-ctrf/playwright-ctrf.json"
278-
if: ${{ matrix.worker == 1 && !cancelled() }}
280+
# if: ${{ matrix.worker == 1 && !cancelled() }}
279281

280282
- name: Store API Test report
281283
uses: actions/upload-artifact@v4
282-
if: ${{ matrix.worker == 1 && !cancelled() }}
284+
# if: ${{ matrix.worker == 1 && !cancelled() }}
283285
with:
284286
name: playwright-ctrf-backend
285287
path: ./_playwright-tests/playwright-ctrf
286288
retention-days: 10
287289

288290
- name: Run front-end Playwright tests
289291
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
291293

292294
- name: Publish front-end Test Report
293295
uses: ctrf-io/github-test-reporter@v1
@@ -299,6 +301,7 @@ jobs:
299301
uses: actions/upload-artifact@v4
300302
if: ${{ !cancelled() }}
301303
with:
302-
name: playwright-ctrf-frontend-${{ matrix.worker }}
304+
# name: playwright-ctrf-frontend-${{ matrix.worker }}
305+
name: playwright-ctrf-frontend
303306
path: ./content-sources-frontend/playwright-ctrf
304307
retention-days: 10

0 commit comments

Comments
 (0)