Skip to content

Migrate Realm from Apple SPM to Tuist dependency manager #481

Migrate Realm from Apple SPM to Tuist dependency manager

Migrate Realm from Apple SPM to Tuist dependency manager #481

Workflow file for this run

name: Testing
on: [push, pull_request]
env:
# TUIST_CONFIG_CLOUD_TOKEN: ${{ secrets.TUIST_CONFIG_CLOUD_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
test:
name: Testing SWDestiny Trades app
runs-on: macOS-13
strategy:
matrix:
scheme: [
SWDestinyTrades
]
workspace: [
swdestiny-trades.xcworkspace
]
destination: [
'platform=iOS Simulator,name=iPhone 15 Pro,OS=17.2'
]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: 15.1
- name: Install Project Tools
uses: jdx/mise-action@v2
with:
experimental: true
- name: Fetch tuist dependencies
run: |
tuist install
shell: bash
#- name: Tuist Cache
# run: |
# tuist cache
# shell: bash
- name: Generate project with tuist
run: |
tuist generate --no-open
shell: bash
- name: Test ${{ matrix.scheme }} on ${{ matrix.destination }}
run: |
xcodebuild -workspace ${{ matrix.workspace }} \
-scheme ${{ matrix.scheme }} \
-destination '${{ matrix.destination }}' \
-resultBundlePath ./coverage/SwdUnitTests.xcresult \
-enableCodeCoverage YES \
test | xcpretty && exit ${PIPESTATUS[0]}
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
swift: true
swift_project: SWDestinyTrades
verbose: true