Skip to content

Commit 8ded1cc

Browse files
fix(e2e): create status check at the top of the workflow
1 parent eecb060 commit 8ded1cc

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,19 @@ jobs:
2525
pull-requests: write
2626
statuses: write
2727
steps:
28+
- name: Create Status Check
29+
uses: actions/github-script@v6
30+
with:
31+
script: |
32+
await github.rest.checks.create({
33+
owner: context.repo.owner,
34+
repo: context.repo.repo,
35+
name: 'E2E Tests',
36+
head_sha: '${{ inputs.sha }}',
37+
status: 'in_progress',
38+
started_at: new Date().toISOString()
39+
})
40+
2841
- name: Checkout
2942
uses: actions/checkout@v4
3043
with:
@@ -51,19 +64,6 @@ jobs:
5164
pnpm install
5265
pnpm exec playwright install --with-deps
5366
54-
- name: Create Status Check
55-
uses: actions/github-script@v6
56-
with:
57-
script: |
58-
await github.rest.checks.create({
59-
owner: context.repo.owner,
60-
repo: context.repo.repo,
61-
name: 'E2E Tests',
62-
head_sha: '${{ inputs.sha }}',
63-
status: 'in_progress',
64-
started_at: new Date().toISOString()
65-
})
66-
6767
- name: Print app configs
6868
working-directory: examples/e2e
6969
run: |

0 commit comments

Comments
 (0)