Coinly/.github/workflows/tests.yml
2025-03-02 22:08:09 +00:00

37 lines
842 B
YAML

name: iOS Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Build and Test
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show Xcode version
run: xcodebuild -version
- name: Show build settings
run: xcodebuild -list -project Coinly.xcodeproj
- name: Build and test
run: |
set -o pipefail && xcodebuild \
-project Coinly.xcodeproj \
-scheme "Coinly" \
-destination 'platform=iOS Simulator,name=iPhone 14,OS=16.4' \
clean test | xcpretty
- name: Upload test results
uses: actions/upload-artifact@v4
if: failure()
with:
name: test-logs
path: ~/Library/Developer/Xcode/DerivedData/**/Logs/Test/**/*.xcresult