Coinly/.github/workflows/tests.yml

38 lines
864 B
YAML

name: iOS Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build and Test
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode.app
- name: Build and Test
run: |
xcodebuild clean test \
-project Coinly.xcodeproj \
-scheme Coinly \
-destination 'platform=iOS Simulator,name=iPhone 14,OS=latest' \
-allowProvisioningUpdates \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO
- name: Upload test results
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: test-results
path: |
build/reports/
build/logs/