{"id":13567812,"url":"https://github.com/tbartelmess/analyze-xcoderesults-action","last_synced_at":"2025-04-04T02:33:20.688Z","repository":{"id":36959862,"uuid":"351240116","full_name":"tbartelmess/analyze-xcoderesults-action","owner":"tbartelmess","description":"Action to display XCode build results as GitHub check","archived":false,"fork":false,"pushed_at":"2023-01-24T08:09:27.000Z","size":970,"stargazers_count":21,"open_issues_count":9,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-05T19:16:30.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tbartelmess.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2021-03-24T22:26:49.000Z","updated_at":"2024-01-12T08:17:30.000Z","dependencies_parsed_at":"2023-02-10T08:25:12.625Z","dependency_job_id":null,"html_url":"https://github.com/tbartelmess/analyze-xcoderesults-action","commit_stats":{"total_commits":77,"total_committers":3,"mean_commits":"25.666666666666668","dds":"0.18181818181818177","last_synced_commit":"88440e1eb4012ff0bd29639b13d78311afbef837"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbartelmess%2Fanalyze-xcoderesults-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbartelmess%2Fanalyze-xcoderesults-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbartelmess%2Fanalyze-xcoderesults-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbartelmess%2Fanalyze-xcoderesults-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbartelmess","download_url":"https://codeload.github.com/tbartelmess/analyze-xcoderesults-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247111645,"owners_count":20885476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T13:02:44.416Z","updated_at":"2025-04-04T02:33:20.377Z","avatar_url":"https://github.com/tbartelmess.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Analyze Xcode Build and Test Results\n\nThis action adds GitHub checks for XCode results.\n\n## Usage\n\n### Pre-Requisites\n\nThis action only works on macOS builders.\n\nBy default `xcodebuild` only writes information to stdout, to use this action `xcodebuild`\nneeds to generate `xcresult` bundle while building and testing.\n\nThis can be done using the `-resultBundlePath` flag in XCode build.\n\nThe following action uses a script action to invoke xcodebuild and store the results\nin `TestResults.xcresult`\n\n```yaml\n      - name: Run Tests\n        run: |\n          xcodebuild -scheme \"MyFramework\"  -resultBundlePath TestResults test\n```\n\n### Configuration\n| Option       | Required | Default | Description |\n|:-------------|:---------|:--------|:------------|\n| `results`     | Yes      |         | Path to the `.xcresult` bundle | \n| `GITHUB_TOKEN` | Yes      |         | GitHub token to create the GitHub check objects. ` ${{ secrets.GITHUB_TOKEN }}` is recommended | \n| `pathPrefix` | No       | Path to the GitHub Workspace | Paths inside the xcode result build are absolute. For GitHub to find the corresponding file for annotations the paths need to be relative to the build directory. If your checkout is not into the GitHub workspace, this option can be used to configure a different prefix. |\n| `title`      | No       | Test Results | Title to show up as the check name | \n| `testSummaryTable` | No | `true`    | Setting if a table with the test results should be included | \n| `testFailureAnnotations` | No | `true` | Setting if GitHub code annotations should be added in the check results | \n| `summary` | No | `true` | Setting if a summary section, with the number of warnings and test failures should be included | \n| `warningAnnotations` | No | `false` | Setting if warnings should be added as GitHub annotations| \n\n\n### Example\n\nThe following example builds and tests the \"My Framework\" scheme and analyzes the results.\n\nThe result of this can be seen in this [test run](https://github.com/tbartelmess/action-test/pull/1/checks?check_run_id=2197833878)\n\n```yaml\n---\nname: Run Tests\non:\n  pull_request\n\njobs:\n  tests:\n    name: Run Tests\n    runs-on: macos-latest\n    steps:\n      - uses: actions/checkout@v2\n        with:\n          fetch-depth: 0\n      - name: Setup Certificates\n        uses: apple-actions/import-codesign-certs@v1\n        with:\n          p12-file-base64: ${{ secrets.CERTIFICATES_P12 }}\n          p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }}\n      - name: Run Tests\n        run: |\n          xcodebuild -scheme \"MyFramework\"  -resultBundlePath TestResults test\n      - uses: tbartelmess/analyze-xcoderesults-action@0.1.0\n        if: always()\n        with:\n          results: TestResults.xcresult\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbartelmess%2Fanalyze-xcoderesults-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbartelmess%2Fanalyze-xcoderesults-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbartelmess%2Fanalyze-xcoderesults-action/lists"}