Skip to content

unit-tests

unit-tests #285

Workflow file for this run

# workflow runs on successful completion of the build workflow, or when manually run
name: unit-tests
on:
workflow_run:
workflows: ["build"]
types: [completed]
workflow_dispatch:
jobs:
unit-tests:
name: Unit Tests
runs-on: macos-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- uses: actions/checkout@main
- name: Unit Tests
run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "MarkersExtractor-Package" -destination "platform=macOS" | xcpretty && exit ${PIPESTATUS[0]}
# xcodebuild test reference:
# https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/testing_with_xcode/chapters/08-automation.html