Skip to content

Commit 223673e

Browse files
Add CI job to check BridgeJS generated files are up-to-date
Adds check-bridgejs-generated job that runs bridge-js-generate.sh and fails if generated files are not current.
1 parent 7814be9 commit 223673e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,24 @@ jobs:
8888
echo "::error::The formatting changed some files. Please run \`./Utilities/format.swift\` and commit the changes."
8989
exit 1
9090
}
91+
92+
check-bridgejs-generated:
93+
runs-on: ubuntu-22.04
94+
steps:
95+
- uses: actions/checkout@v5
96+
- uses: ./.github/actions/install-swift
97+
with:
98+
download-url: https://download.swift.org/development/ubuntu2204/swift-DEVELOPMENT-SNAPSHOT-2025-06-12-a/swift-DEVELOPMENT-SNAPSHOT-2025-06-12-a-ubuntu22.04.tar.gz
99+
- run: make bootstrap
100+
- run: ./Utilities/bridge-js-generate.sh
101+
- name: Check if BridgeJS generated files are up-to-date
102+
run: |
103+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
104+
git diff --exit-code || {
105+
echo "::error::BridgeJS generated files are out of date. Please run \`./Utilities/bridge-js-generate.sh\` and commit the changes."
106+
exit 1
107+
}
108+
91109
build-examples:
92110
runs-on: ubuntu-latest
93111
steps:

0 commit comments

Comments
 (0)