Merge pull request #47 from cybozu/style #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "*.*.*" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run-unit-test: | |
name: Unit Test | |
runs-on: macos-14 | |
timeout-minutes: 30 | |
env: | |
DEVELOPER_DIR: "/Applications/Xcode_15.4.app/Contents/Developer" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Show Xcode Version | |
run: xcodebuild -version | |
- name: Run SourcePackagesParserTests | |
run: | | |
xcodebuild -scheme spp test \ | |
-only-testing:SourcePackagesParserTests \ | |
-destination "platform=macOS,arch=arm64" \ | |
-resultBundlePath TestResults/result_bundle | \ | |
xcpretty -c && exit ${PIPESTATUS[0]} | |
- name: Archive test results | |
if: success() || failure() | |
uses: kishikawakatsumi/xcresulttool@v1 | |
with: | |
path: TestResults/result_bundle.xcresult | |
show-passed-tests: false |