Skip to content

Commit 10567e5

Browse files
authored
chore: create e2e-report.yml (#479)
* Create e2e-report.yml * remove cli install * add secret + step for downlaod * remove commented out schedule * update
1 parent d35ae7e commit 10567e5

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/e2e-report.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Deploy e2e test page'
2+
on:
3+
workflow_dispatch:
4+
5+
env:
6+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
7+
NETLIFY_SITE_ID: ${{ secrets.E2E_PAGE_SITE_ID }}
8+
9+
jobs:
10+
setup:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Get run id
14+
id: get-run-id
15+
run: |
16+
E2E_RUN_ID='gh run list -w test-e2e.yml -e schedule --json databaseId --jq ".[0].databaseId"'
17+
echo "runId=$E2E_RUN_ID" >> $GITHUB_OUTPUT
18+
- name: Download latest e2e results
19+
run: |
20+
echo "Downloading latest test results from run https://github.com/netlify/next-runtime-minimal/actions/runs/${{ steps.get-run-id.outputs.runId }}"
21+
gh run download ${{ steps.get-run-id.outputs.runId }} -n "latest-test-results.json" -D e2e-report/data/
22+
- name: Deploy e2e page
23+
if: success()
24+
run: |
25+
ntl deploy --build --cwd e2e-report

0 commit comments

Comments
 (0)