Skip to content

Commit

Permalink
Create test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyome22 committed Nov 6, 2024
1 parent 03bf1e9 commit 6b76128
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6b76128

Please sign in to comment.