Skip to content

Prepare 1.16.0 release #645

Prepare 1.16.0 release

Prepare 1.16.0 release #645

Workflow file for this run

name: Build and test
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
build:
name: Build and test
runs-on: macos-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Set up XCode
uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1.7.0
with:
xcode-version: latest-stable
- name: Test with strict concurrency
run: |
swift build -Xswiftc -strict-concurrency=complete
swift test -Xswiftc -strict-concurrency=complete
- name: List available simulator targets
run: xcrun xctrace list devices
- name: Test on iOS simulator
run: xcodebuild test -scheme PowerSync-Package -destination "platform=iOS Simulator,name=iPhone 17"
- name: Test on macOS
run: xcodebuild test -scheme PowerSync-Package -destination "platform=macOS,arch=arm64,name=My Mac"
- name: Test on watchOS simulator
run: xcodebuild test -scheme PowerSync-Package -destination "platform=watchOS Simulator,arch=arm64,name=Apple Watch Ultra 3 (49mm)"
- name: Test on tvOS simulator
run: xcodebuild test -scheme PowerSync-Package -destination "platform=tvOS Simulator,arch=arm64,name=Apple TV"