Skip to content

Commit 5ca1b2f

Browse files
authored
Add testCheckoutV5 job to workflow
1 parent 236fbe8 commit 5ca1b2f

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/test-command.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,6 +1801,38 @@ jobs:
18011801
run: exit 1
18021802

18031803

1804+
testCheckoutV5:
1805+
needs: beforeTest
1806+
runs-on: ubuntu-latest
1807+
steps:
1808+
- uses: actions/checkout@v5 # DO NOT UPDATE
1809+
# Download the action artifact
1810+
- uses: actions/download-artifact@v7
1811+
with:
1812+
name: create-pull-request
1813+
path: create-pull-request-local
1814+
# Test
1815+
- name: Create report file
1816+
run: date +%s > report.txt
1817+
- name: Create Pull Request
1818+
id: cpr
1819+
uses: ./create-pull-request-local
1820+
with:
1821+
title: testCheckoutV5
1822+
branch: tests/branch/checkout-v5
1823+
sign-commits: ${{ needs.beforeTest.outputs.sign-commits }}
1824+
# Check outputs
1825+
- name: Check the operation is 'created'
1826+
if: steps.cpr.outputs.pull-request-operation != 'created'
1827+
run: exit 1
1828+
- name: Check a pull request number exists
1829+
if: steps.cpr.outputs.pull-request-number == ''
1830+
run: exit 1
1831+
- name: Check the verification status of commits
1832+
if: steps.cpr.outputs.pull-request-commits-verified != needs.beforeTest.outputs.sign-commits
1833+
run: exit 1
1834+
1835+
18041836
afterTest:
18051837
needs:
18061838
- createRunLink
@@ -1834,6 +1866,7 @@ jobs:
18341866
- testUbuntuContainer
18351867
- testProxySupport
18361868
- testNoProxySupport
1869+
- testCheckoutV5
18371870
runs-on: ubuntu-latest
18381871
steps:
18391872
# Add reaction to the comment

0 commit comments

Comments
 (0)