Skip to content

Commit 3289582

Browse files
committed
Added well-known types up-to-date check
1 parent 25e741e commit 3289582

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Verify Protobuf Well-Known Types are Up-to-Date
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
verify-platforms-table:
11+
name: Run Verification
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Sources
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
- name: Setup Gradle
19+
uses: gradle/actions/setup-gradle@v4
20+
- name: Run Protobuf Conformance Test Generation
21+
run: ./gradlew :protobuf:protobuf-core:bufGenerateCommonMain --info --stacktrace
22+
- name: Check if Well-Known Types are up-to-date
23+
run: |
24+
if [[ -n "$(git status --porcelain | grep protobuf/protobuf-core/)" ]]; then
25+
echo "Well-Known Types are not up-to-date. Please run './gradlew :protobuf:protobuf-core:bufGenerateCommonMain' and commit changes"
26+
exit 1
27+
fi

0 commit comments

Comments
 (0)