Skip to content

fix and secure init from backgroud thread #396

fix and secure init from backgroud thread

fix and secure init from backgroud thread #396

Workflow file for this run

name: Swift
on:
pull_request:
push:
branches:
- master
jobs:
Build_SDK:
runs-on: macos-latest
strategy:
matrix:
run-config:
- { scheme: 'Flagship', destination: 'platform=iOS Simulator,name=iPhone SE (3rd generation)', label: 'iOS'}
- { scheme: 'Flagship-tvOS', destination: 'platform=tvOS Simulator,name=Apple TV', label: 'tvOS' }
- { scheme: 'Flagship-macOS', destination: 'platform=macOS', label: 'macOS'}
- { scheme: 'Flagship-watchOS', destination: 'platform=watchOS Simulator,name=Apple Watch Ultra 3 (49mm),OS=26.2', label: 'watchOS'}
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Building SDK for ${{ matrix.run-config['label'] }}
run: xcodebuild clean build -project Flagship/Flagship.xcodeproj -scheme '${{ matrix.run-config['scheme'] }}' -destination '${{ matrix.run-config['destination'] }}'
Testing:
needs: Build_SDK
runs-on: macos-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Test SDK Flagship
run: xcodebuild test -project Flagship/Flagship.xcodeproj -scheme "Flagship" -destination "platform=iOS Simulator,name=iPhone SE (3rd generation)" -enableCodeCoverage YES
- name: Upload coverage to Codecov
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24
with:
token: ${{ secrets.CODECOV_TOKEN }}