From 6c24a7e922714327c54ecf7e230319e79272b50c Mon Sep 17 00:00:00 2001 From: Corey Date: Wed, 10 Apr 2024 11:33:32 -0700 Subject: [PATCH] ci: Add code integration testing to repo (#1569) --- .github/workflows/build.yml | 26 +++++++++++++++++++ .../xcschemes/ResearchKit.xcscheme | 6 ++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..9f105e484 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build + +on: + push: + branches: [ 'main', 'stable' ] + pull_request: + branches: [ 'main', 'stable' ] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: macos-14 + strategy: + matrix: + destination: ['platform=iOS\ Simulator,OS=17.4,name=iPhone\ 15\ Pro'] + scheme: ['ResearchKit'] + name: ${{ matrix.scheme }} Unit Tests + steps: + - uses: actions/checkout@v4 + - name: Set Xcode Version + run: sudo xcode-select -s /Applications/Xcode_15.3.app + - name: Test + run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -verbose -workspace RKWorkspace.xcworkspace -scheme ${{ matrix.scheme }} -destination ${{ matrix.destination }} build test | xcpretty diff --git a/ResearchKit.xcodeproj/xcshareddata/xcschemes/ResearchKit.xcscheme b/ResearchKit.xcodeproj/xcshareddata/xcschemes/ResearchKit.xcscheme index 8c9eaaf2c..ee16d449a 100644 --- a/ResearchKit.xcodeproj/xcshareddata/xcschemes/ResearchKit.xcscheme +++ b/ResearchKit.xcodeproj/xcshareddata/xcschemes/ResearchKit.xcscheme @@ -15,7 +15,7 @@ @@ -51,7 +51,7 @@ @@ -67,7 +67,7 @@