Skip to content

Run tests using xcodebuild #13

Run tests using xcodebuild

Run tests using xcodebuild #13

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Unit Tests
on:
pull_request:
branches:
- 'main'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
SCHEME: "DBThreadSafe"
DESTINATION: "platform=OS X"
jobs:
tests:
runs-on: 'ios'
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Prepare Environment for App Build
uses: ./.github/actions/prepare_env_app_build
- name: Resolve Dependencies
run: >
xcodebuild -resolvePackageDependencies
-scheme ${{ env.SCHEME }}
-destination '${{ env.DESTINATION }}'
-quiet
- name: Build
run: >
xcodebuild build-for-testing
-scheme ${{ env.SCHEME }}
-destination '${{ env.DESTINATION }}'
-quiet
- name: Test
run: >
xcodebuild test-without-building
-scheme ${{ env.SCHEME }}
-destination '${{ env.DESTINATION }}'
-resultBundlePath ${{ env.SCHEME }}
-quiet