Skip to content

Commit d1bb75c

Browse files
committed
fix: checkout and set pending commit status order
1 parent dcbf6e1 commit d1bb75c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/test_backend.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
start_time: ${{ steps.run-tests.outputs.timestamp }}
4141
status: ${{ steps.set-pending-status.outcome }}
4242
steps:
43+
- name: Checkout code
44+
uses: actions/checkout@v4
45+
4346
- name: Set pending commit status
4447
id: set-pending-status
4548
run: |
@@ -49,8 +52,6 @@ jobs:
4952
https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \
5053
-d "{\"state\": \"pending\", \"context\": \"Backend Tests : ${{env.BASE_URL}}\", \"target_url\": \"https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\"}"
5154
52-
- name: Checkout code
53-
uses: actions/checkout@v4
5455
5556
- name: Set up Python
5657
uses: actions/setup-python@v4

.github/workflows/test_integration_playwright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
run:
4545
working-directory: tests/govtool-frontend/playwright
4646
steps:
47+
- uses: actions/checkout@v4
4748
- name: Set pending commit status
4849
id: set-pending-status
4950
run: |
@@ -53,7 +54,6 @@ jobs:
5354
https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \
5455
-d "{\"state\": \"pending\", \"context\": \"Playwright Tests : ${{env.HOST_URL}}\", \"target_url\": \"https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\"}"
5556
56-
- uses: actions/checkout@v4
5757
- uses: actions/setup-node@v4
5858
with:
5959
node-version: "18"

0 commit comments

Comments
 (0)