-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
97 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"projects": {}, | ||
"targets": { | ||
"taiga-previews": { | ||
"hosting": { | ||
"taiga-previews-demo": [ | ||
"taiga-previews-demo" | ||
], | ||
"taiga-previews-demo-e2e-report": [ | ||
"taiga-previews-demo-e2e-report" | ||
] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,6 +188,15 @@ jobs: | |
compression-level: 0 | ||
retention-days: 1 | ||
|
||
- name: Upload blob reports | ||
uses: actions/[email protected] | ||
with: | ||
path: ./projects/demo-playwright/blob-report | ||
name: blob-reports_${{ github.event.number }} | ||
compression-level: 0 | ||
retention-days: 1 | ||
overwrite: true | ||
|
||
# workaround for status checks -- check this one job instead of each individual E2E job in the matrix | ||
# see https://github.com/orgs/community/discussions/9141#discussioncomment-2296809 | ||
playwright-composite-result: | ||
|
@@ -213,6 +222,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
|
||
- name: Download artifacts for Playwright | ||
continue-on-error: true | ||
|
@@ -232,6 +242,48 @@ jobs: | |
merge-multiple: true | ||
- run: ls -R ./total/cypress || echo "not found" | ||
|
||
- name: Download blob reports for Playwright | ||
continue-on-error: true | ||
uses: actions/[email protected] | ||
with: | ||
path: all-blob-reports | ||
name: blob-reports_${{ github.event.number }} | ||
- run: ls -R ./all-blob-reports || echo "not found" | ||
|
||
- name: Merge into HTML Report | ||
run: npx playwright merge-reports --reporter html,json ./all-blob-reports > ./all-blob-reports/results.json | ||
|
||
- name: Deploy e2e report | ||
id: e2e-report | ||
uses: FirebaseExtended/[email protected] | ||
if: env.IS_OWNER_MODE == 'true' | ||
continue-on-error: true | ||
with: | ||
repoToken: ${{ secrets.GITHUB_TOKEN }} | ||
firebaseServiceAccount: ${{ secrets.FIREBASE_TAIGA_PREVIEWS_SA }} | ||
projectId: taiga-previews | ||
expires: 1d | ||
target: taiga-previews-demo-e2e-report | ||
disableComment: 'true' | ||
|
||
- name: Upload HTML report | ||
uses: actions/[email protected] | ||
id: upload-merged-playwright-report-step | ||
with: | ||
name: html-report--attempt-${{ github.run_attempt }} | ||
path: playwright-report | ||
retention-days: 1 | ||
|
||
- name: Create report comment | ||
id: report-summary | ||
continue-on-error: true | ||
uses: daun/[email protected] | ||
with: | ||
comment-title: 'Playwright test results' | ||
report-file: ./all-blob-reports/results.json | ||
report-url: ${{ steps.upload-merged-playwright-report-step.outputs.artifact-url }} | ||
custom-info: 'For more information, [see our report](${{ steps.e2e.outputs.details_url }})' | ||
|
||
- name: Check if diff-output exists | ||
id: diff_checker | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,3 +44,4 @@ RELEASE_BODY.md | |
projects/demo/routes.txt | ||
migrations.json | ||
sitemap.xml | ||
blob-report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
{ | ||
"hosting": { | ||
"public": "dist/demo/browser", | ||
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"], | ||
"rewrites": [ | ||
{ | ||
"source": "**", | ||
"destination": "/index.html" | ||
} | ||
] | ||
} | ||
"$schema": "https://raw.githubusercontent.com/firebase/firebase-tools/master/schema/firebase-config.json", | ||
"hosting": [ | ||
{ | ||
"target": "taiga-previews-demo", | ||
"public": "dist/demo/browser", | ||
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"], | ||
"rewrites": [ | ||
{ | ||
"source": "**", | ||
"destination": "/index.html" | ||
} | ||
] | ||
}, | ||
{ | ||
"target": "taiga-previews-demo-e2e-report", | ||
"public": "playwright-report", | ||
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"], | ||
"rewrites": [ | ||
{ | ||
"source": "**", | ||
"destination": "/index.html" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters