From ff2567426b0dc809205bf0eb79f0be6e18252a06 Mon Sep 17 00:00:00 2001 From: Calvin Cestari Date: Tue, 17 Sep 2024 15:58:51 -0700 Subject: [PATCH 1/2] Removes continue-on-error --- .github/workflows/ci-tests-xcode-beta.yml | 2 -- .github/workflows/ci-tests.yml | 3 --- 2 files changed, 5 deletions(-) diff --git a/.github/workflows/ci-tests-xcode-beta.yml b/.github/workflows/ci-tests-xcode-beta.yml index ffc6bb2dd..19d4f9ff7 100644 --- a/.github/workflows/ci-tests-xcode-beta.yml +++ b/.github/workflows/ci-tests-xcode-beta.yml @@ -150,7 +150,6 @@ jobs: - name: Build and Test if: ${{ matrix.should-run == true || matrix.should-run == 'true' }} id: build-and-test - continue-on-error: true uses: ./.github/actions/build-and-run-unit-tests with: destination: ${{ matrix.destination }} @@ -158,7 +157,6 @@ jobs: test-plan: ${{ matrix.test-plan }} - name: Run-JS-Tests if: ${{ matrix.run-js-tests == true }} - continue-on-error: true shell: bash working-directory: apollo-ios-codegen/Sources/GraphQLCompiler/JavaScript/ run: | diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 7deaa3aaf..ed5ece384 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -150,7 +150,6 @@ jobs: - name: Build and Test if: ${{ matrix.should-run == true || matrix.should-run == 'true' }} id: build-and-test - continue-on-error: true uses: ./.github/actions/build-and-run-unit-tests with: destination: ${{ matrix.destination }} @@ -158,7 +157,6 @@ jobs: test-plan: ${{ matrix.test-plan }} - name: Run-JS-Tests if: ${{ matrix.run-js-tests == true }} - continue-on-error: true shell: bash working-directory: apollo-ios-codegen/Sources/GraphQLCompiler/JavaScript/ run: | @@ -307,7 +305,6 @@ jobs: key: ${{ github.run_id }}-dependencies fail-on-cache-miss: true - name: Build and Test - continue-on-error: true uses: ./.github/actions/build-and-run-unit-tests with: destination: platform=macOS,arch=x86_64 From 187d58e6ef98628dbd0ddd8617fc9cb529522fb7 Mon Sep 17 00:00:00 2001 From: Calvin Cestari Date: Tue, 17 Sep 2024 16:17:57 -0700 Subject: [PATCH 2/2] Use failure condition instead --- .github/workflows/ci-tests-xcode-beta.yml | 8 ++++---- .github/workflows/ci-tests.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-tests-xcode-beta.yml b/.github/workflows/ci-tests-xcode-beta.yml index 19d4f9ff7..836e65437 100644 --- a/.github/workflows/ci-tests-xcode-beta.yml +++ b/.github/workflows/ci-tests-xcode-beta.yml @@ -162,27 +162,27 @@ jobs: run: | npm install && npm test - name: Save xcodebuild logs - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.name }}-logs path: | DerivedData/Logs/Build - name: Save crash logs - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.name }}-crashes path: | ~/Library/Logs/DiagnosticReports - name: Zip Result Bundle - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() }} shell: bash working-directory: TestResults run: | zip -r ResultBundle.zip ResultBundle.xcresult - name: Save test results - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.name }}-results diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index ed5ece384..e4f5849e1 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -162,27 +162,27 @@ jobs: run: | npm install && npm test - name: Save xcodebuild logs - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.name }}-logs path: | DerivedData/Logs/Build - name: Save crash logs - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.name }}-crashes path: | ~/Library/Logs/DiagnosticReports - name: Zip Result Bundle - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() }} shell: bash working-directory: TestResults run: | zip -r ResultBundle.zip ResultBundle.xcresult - name: Save test results - if: ${{ steps.build-and-test.outcome != 'skipped' }} + if: ${{ failure() }} uses: actions/upload-artifact@v3 with: name: ${{ matrix.name }}-results