Skip to content

Commit

Permalink
Add playwright report task (#7946)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrombo authored Mar 26, 2024
1 parent 6aa730b commit 0ae0170
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 4 deletions.
1 change: 1 addition & 0 deletions .circleci/src/@continue_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ orbs:
ruby: circleci/ruby@1.2.0
browser-tools: circleci/browser-tools@1.4.4
newman: postman/newman@1.0.0
swissknife: roopakv/swissknife@0.69.0

# the default pipeline parameters, which will be updated according to
# the results of the path-filtering orb in config.yml
Expand Down
3 changes: 2 additions & 1 deletion .circleci/src/jobs/@create-audius-app-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ create-audius-app-test:
create-audius-app-test-e2e:
working_directory: ~/audius-protocol
resource_class: medium
executor: cypress/default
docker:
- image: cimg/node:18.17
steps:
- checkout
- attach_workspace:
Expand Down
31 changes: 29 additions & 2 deletions .circleci/src/jobs/@web-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,38 @@ playwright-tests:
- store_test_results:
path: packages/web/report.xml
when: always
- store_artifacts:
path: packages/web/playwright-report
- store_artifacts:
path: packages/web/blob-report

playwright-tests-report:
working_directory: ~/audius-protocol
docker:
- image: cimg/node:18.17
steps:
- swissknife/wait_for_job:
job-name: playwright-tests
- swissknife/get-job-number:
job-name: playwright-tests
- swissknife/get_job_artifacts:
job-number: SK_JOB_NUM
file-name-pattern: packages/web/blob-report/report-1.zip
save-to-directory: ./blob-report
- swissknife/get_job_artifacts:
job-number: SK_JOB_NUM
file-name-pattern: packages/web/blob-report/report-2.zip
save-to-directory: ./blob-report
- swissknife/get_job_artifacts:
job-number: SK_JOB_NUM
file-name-pattern: packages/web/blob-report/report-3.zip
save-to-directory: ./blob-report
- swissknife/get_job_artifacts:
job-number: SK_JOB_NUM
file-name-pattern: packages/web/blob-report/report-4.zip
save-to-directory: ./blob-report
- run: npx playwright merge-reports --reporter html ./blob-report
- store_artifacts:
path: playwright-report

web-test:
working_directory: ~/audius-protocol
docker:
Expand Down
8 changes: 7 additions & 1 deletion .circleci/src/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ jobs:
- Audius Client
- Probers
requires:
- web-init
- web-build-staging

- playwright-tests-report:
context:
- Probers
requires:
- web-build-staging

- web-test:
context: Audius Client
Expand Down

0 comments on commit 0ae0170

Please sign in to comment.