Skip to content

Commit 10a29db

Browse files
committed
chore(ci): validate patch files in ci
1 parent 5242969 commit 10a29db

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,24 @@ on:
66
workflow_dispatch:
77

88
jobs:
9+
verify-patch-files:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
submodules: true
15+
- uses: actions/setup-go@v5
16+
- name: Run update-patch.sh and verify no diffs
17+
run: |
18+
cd go-runner/overlay
19+
./update-patch.sh
20+
21+
if ! git diff --exit-code . > /dev/null 2>&1; then
22+
echo "Patch files are out of date. Run './go-runner/overlay/update-patch.sh' locally and commit the changes."
23+
git diff
24+
exit 1
25+
fi
26+
927
lint:
1028
runs-on: ubuntu-latest
1129
steps:
@@ -97,6 +115,7 @@ jobs:
97115
runs-on: ubuntu-latest
98116
if: always()
99117
needs:
118+
- verify-patch-files
100119
- lint
101120
- tests
102121
- compat-integration-test-walltime

0 commit comments

Comments
 (0)