Create github workflow #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Swift Unit Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Run Unit Tests | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
xcode-version: ['16.0'] | |
ios-version: ['18.0'] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Xcode | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: ${{ matrix.xcode-version }} | |
- name: Build and Test | |
env: | |
GIDCLIENTID: ${{ secrets.GIDCLIENTID }} | |
run: | | |
xcodebuild clean build test \ | |
-scheme AdRevenueWatch \ | |
-destination 'platform=iOS Simulator,name=iPhone 16,OS=${{ matrix.ios-version }}' \ | |
-configuration Debug \ | |
CODE_SIGNING_ALLOWED=NO |