Skip to content

Commit 2f36ba1

Browse files
Treat warnings as errors in Swift workflow (#8)
1 parent c1c342f commit 2f36ba1

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/swift.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ jobs:
2828
- name: Resolve package dependencies
2929
run: xcodebuild -resolvePackageDependencies
3030
- name: Build
31-
run: xcodebuild build-for-testing -scheme "CollectionBuilders" -destination "name=$SIMULATOR,OS=latest"
31+
run: >
32+
xcodebuild
33+
build-for-testing
34+
-scheme "CollectionBuilders"
35+
-destination "name=$SIMULATOR,OS=latest"
36+
SWIFT_TREAT_WARNINGS_AS_ERRORS=YES
3237
- name: Test
33-
run: xcodebuild test-without-building -scheme "CollectionBuilders" -destination "name=$SIMULATOR,OS=latest"
38+
run: >
39+
xcodebuild
40+
test-without-building
41+
-scheme "CollectionBuilders"
42+
-destination "name=$SIMULATOR,OS=latest"

0 commit comments

Comments
 (0)