From 6b76128c08166f80c0d1b2ab926c403d5a31f23e Mon Sep 17 00:00:00 2001 From: "Takuto NAKAMURA (Kyome)" Date: Wed, 6 Nov 2024 22:59:23 +0900 Subject: [PATCH] Create test.yml --- .github/workflows/test.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..39e3e00 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,37 @@ +name: Test + +on: + workflow_dispatch: + push: + branches: + - "main" + paths-ignore: + - "**/README.md" + +jobs: + unit-test: + name: Unit Test + runs-on: macos-14 + env: + DEVELOPER_DIR: "/Applications/Xcode_16.app/Contents/Developer" + + steps: + - uses: actions/checkout@v4 + + - name: Show Xcode version + run: xcodebuild -version + + - name: Run Test + working-directory: ShiftWindowPackages + run: | + xcodebuild -scheme ShiftWindowPackages-Package test \ + -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