Skip to content

Commit 8087f8e

Browse files
authored
chore: add pass confirmation jobs in actions (#3158)
1 parent 35c1e9e commit 8087f8e

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

.github/workflows/build_amplify_swift.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,18 @@ jobs:
7373
destination: platform=watchOS Simulator,name=Apple Watch Series 8 (45mm),OS=9.4
7474
sdk: watchsimulator
7575
xcode_path: '/Applications/Xcode_14.3.app'
76+
77+
confirm-pass:
78+
runs-on: ubuntu-latest
79+
name: Confirm Passing Build Steps
80+
if: ${{ !cancelled() }}
81+
needs: [
82+
build-amplify-swift-iOS,
83+
build-amplify-swift-macOS,
84+
build-amplify-swift-tvOS,
85+
build-amplify-swift-watchOS
86+
]
87+
env:
88+
EXIT_CODE: ${{ contains(needs.*.result, 'failure') && 1 || 0 }}
89+
steps:
90+
- run: exit $EXIT_CODE

.github/workflows/codeql.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,12 @@ jobs:
5252
- name: Perform CodeQL Analysis
5353
uses: github/codeql-action/analyze@822fe5ef9a15bd752ef127e9ff6eac38ec37dd9c
5454

55+
confirm-pass:
56+
runs-on: ubuntu-latest
57+
name: Confirm Passing CodeQL Scan
58+
if: ${{ !cancelled() }}
59+
needs: [ analyze ]
60+
env:
61+
EXIT_CODE: ${{ contains(needs.*.result, 'failure') && 1 || 0 }}
62+
steps:
63+
- run: exit $EXIT_CODE

.github/workflows/fortify_scan.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,13 @@ jobs:
6262
run: |
6363
export PATH=~/amplify-swift/Fortify/bin:$PATH
6464
sh ./fortify_scan.sh source
65+
66+
confirm-pass:
67+
runs-on: ubuntu-latest
68+
name: Confirm Passing Fortify Scan
69+
if: ${{ !cancelled() }}
70+
needs: [ fortify-scan ]
71+
env:
72+
EXIT_CODE: ${{ contains(needs.*.result, 'failure') && 1 || 0 }}
73+
steps:
74+
- run: exit $EXIT_CODE

.github/workflows/unit_test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,16 @@ jobs:
7676
with:
7777
scheme: ${{ matrix.file.scheme }}
7878
flags: ${{ matrix.file.flags }}
79+
80+
unit-test-pass-confirmation:
81+
runs-on: ubuntu-latest
82+
name: Confirm Passing Unit Tests
83+
if: ${{ !cancelled() }}
84+
needs: [
85+
unit-tests-with-coverage,
86+
unit-tests-without-coverage
87+
]
88+
env:
89+
EXIT_CODE: ${{ contains(needs.*.result, 'failure') && 1 || 0 }}
90+
steps:
91+
- run: exit $EXIT_CODE

0 commit comments

Comments
 (0)