From 61a38506f487bf966e3b74362590dc6eddc80a22 Mon Sep 17 00:00:00 2001 From: "Takuto NAKAMURA (Kyome)" Date: Wed, 6 Jul 2022 16:23:25 +0900 Subject: [PATCH] Added workflows --- .github/workflows/dispatch-task.yml | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/dispatch-task.yml diff --git a/.github/workflows/dispatch-task.yml b/.github/workflows/dispatch-task.yml new file mode 100644 index 0000000..979f577 --- /dev/null +++ b/.github/workflows/dispatch-task.yml @@ -0,0 +1,41 @@ +name: Dispatch Workflow + +on: + workflow_dispatch: + +jobs: + run-unit-test: + name: Run Unit Test + runs-on: macos-12 + timeout-minutes: 30 + env: + DEVELOPER_DIR: "/Applications/Xcode_13.4.1.app/Contents/Developer" + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Show Xcode Version + run: xcodebuild -version + + - name: Run SourcePackagesParserTests + run: | + xcodebuild -scheme spp test \ + -destination "platform=macOS,arch=x86_64" \ + -resultBundlePath SourcePackagesParserTests | \ + xcpretty + + - name: Run LicenseListTests + run: | + xcodebuild -scheme LicenseList-Package test \ + -destination "platform=iOS Simulator,name=iPhone 13,OS=15.5" \ + -resultBundlePath LicenseListTests | \ + xcpretty + + - name: Archive test results + if: success() || failure() + uses: kishikawakatsumi/xcresulttool@v1.4.0 + with: + path: | + SourcePackagesParserTests.xcresult + LicenseListTests.xcresult