Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong check status for run #127

Open
grzegorzkrukowski opened this issue Feb 25, 2022 · 0 comments
Open

Wrong check status for run #127

grzegorzkrukowski opened this issue Feb 25, 2022 · 0 comments

Comments

@grzegorzkrukowski
Copy link

grzegorzkrukowski commented Feb 25, 2022

Hey

I found a problem when using this action.

I use it with my project and I am getting always failure results even though my all tests have succeeded.

CleanShot 2022-02-25 at 13 35 51@2x

Here is my workflow:

.... checkout etc...
- name: Test
        if: always() && steps.build.outcome == 'success'
        id: test
        run: |
          set +e
          set -o pipefail
          xcodebuild test -resultBundlePath TestResults -project MyProject.xcodeproj -clonedSourcePackagesDirPath .build -scheme MyProject CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO OTHER_CFLAGS="-Wno-ambiguous-macro" -quiet | xcpretty
          xcodebuild_result=$?
          set -e
          if [[ $xcodebuild_result != 0 ]]; then
              echo "::error title=Tests error::Click for details"
              exit $xcodebuild_result
          fi
      - name: Test Results Analyze
        uses: tbartelmess/[email protected]
        if: always() && steps.test.outcome == 'failed' || steps.test.outcome == 'success'
        with:
          results: TestResults.xcresult
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CleanShot 2022-02-25 at 14 07 48@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant