From 0b5e0e12bd2117dbd18ec3ef812c7c9245ac9b19 Mon Sep 17 00:00:00 2001 From: ZhgChgLi <33706588+zhgchgli0718@users.noreply.github.com> Date: Wed, 28 Feb 2024 16:23:02 +0800 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a474577 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: Build & Test + +on: + workflow_dispatch: + # pull_request: + # types: [opened, reopened, synchronize] + # push: + # branches: + # - main + +jobs: + build: + runs-on: macos-14 + steps: + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '15.2' + - uses: actions/checkout@v3 + - name: iOS build and test + run: | + set -o pipefail + xcodebuild test -project PokemonGuider.xcodeproj -testPlan PokemonGuiderAllTests -scheme PokemonGuider -enableCodeCoverage YES -resultBundlePath './TestResult.xcresult' -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.0.1' build test | xcpretty + - name: Codecov + uses: codecov/codecov-action@v3.1.1 + with: + xcode: true + xcode_archive_path: './TestResult.xcresult'