Skip to content

Commit

Permalink
Create ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhgchgli0718 authored Feb 28, 2024
1 parent 8971f61 commit 0b5e0e1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
xcode: true
xcode_archive_path: './TestResult.xcresult'

0 comments on commit 0b5e0e1

Please sign in to comment.