Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Commit c998cc0

Browse files
committed
ci: ensure Types.swift is unchanged
1 parent 39b79d3 commit c998cc0

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,18 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v3
15-
15+
16+
- name: Generate OpenIAP types
17+
run: ./scripts/generate-types.sh
18+
19+
- name: Ensure Types.swift is unchanged
20+
run: |
21+
if ! git diff --quiet -- Sources/Models/Types.swift; then
22+
echo "::error file=Sources/Models/Types.swift::Types.swift is out of date. Run ./scripts/generate-types.sh and commit the result."
23+
git diff -- Sources/Models/Types.swift
24+
exit 1
25+
fi
26+
1627
- name: Select Xcode
1728
run: |
1829
echo "Available Xcode versions:"
@@ -24,4 +35,4 @@ jobs:
2435
run: swift build
2536

2637
- name: Run tests
27-
run: swift test
38+
run: swift test

0 commit comments

Comments
 (0)