Skip to content

Create github workflow #16

Create github workflow

Create github workflow #16

Workflow file for this run

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 }}
TEST_VAR: ${{ vars.TEST_VAR }}
run: |
echo "GIDCLIENTID: $GIDCLIENTID" \
echo "TEST_VAR: $TEST_VAR" \
xcodebuild clean build test \
-scheme AdRevenueWatch \
-destination 'platform=iOS Simulator,name=iPhone 15,OS=${{ matrix.ios-version }}' \
-configuration Debug \
CODE_SIGNING_ALLOWED=NO