Skip to content

Commit f8ff15a

Browse files
committed
Make sure failures in multiline CI steps are not swallowed.
Without this change, it is possible to have a passing CI job even though the build failed, e.g. https://github.com/dabrahams/CBORCoding/actions/runs/6806944368/job/18509010389#step:4:99
1 parent f2776a7 commit f8ff15a

File tree

9 files changed

+27
-0
lines changed

9 files changed

+27
-0
lines changed

.github/workflows/carthage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Carthage
2+
defaults:
3+
run:
4+
shell: bash -eo pipefail {0}
25
on:
36
workflow_dispatch:
47
push:

.github/workflows/cocoapods.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Cocoapods
2+
defaults:
3+
run:
4+
shell: bash -eo pipefail {0}
25
on:
36
workflow_dispatch:
47
push:

.github/workflows/documentation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Documentation
2+
defaults:
3+
run:
4+
shell: bash -eo pipefail {0}
25
on:
36
workflow_dispatch:
47
push:

.github/workflows/publish-cocoapods.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Publish CocoaPods
2+
defaults:
3+
run:
4+
shell: bash -eo pipefail {0}
25
on:
36
release:
47
types: [published]

.github/workflows/swift-package.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Swift Package
2+
defaults:
3+
run:
4+
shell: bash -eo pipefail {0}
25
on:
36
workflow_dispatch:
47
push:

.github/workflows/swiftlint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: SwiftLint
2+
defaults:
3+
run:
4+
shell: bash -eo pipefail {0}
25
on:
36
workflow_dispatch:
47
push:

.github/workflows/upload-assets.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Upload Assets
2+
defaults:
3+
run:
4+
shell: bash -eo pipefail {0}
25
on:
36
release:
47
types: [published]

.github/workflows/xcframework.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: XCFramework
2+
defaults:
3+
run:
4+
shell: bash -eo pipefail {0}
25
on:
36
workflow_dispatch:
47
push:

.github/workflows/xcodebuild.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Xcode Project
2+
defaults:
3+
run:
4+
shell: bash -eo pipefail {0}
25
on:
36
workflow_dispatch:
47
push:

0 commit comments

Comments
 (0)