Skip to content

Wrong check status for run #127

Description

@grzegorzkrukowski

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/analyze-xcoderesults-action@0.1.1
        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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions