Skip to content

Fix bug where changes are published during SwiftUI view init #82

Fix bug where changes are published during SwiftUI view init

Fix bug where changes are published during SwiftUI view init #82

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
# Run Exhibition tests via xcodeproj
test:
runs-on: macos-11
strategy:
matrix:
include:
# Latest iOS
- sdk: "iphonesimulator"
destination: "platform=iOS Simulator,OS=15.2,name=iPhone 12 Pro Max"
# Latest watchOS
- sdk: "watchsimulator"
destination: "OS=8.3,name=Apple Watch Series 7 - 45mm"
# Latest macOS
- sdk: "macosx12.1"
destination: "platform=macOS"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Select Xcode
uses: devbotsxyz/xcode-select@v1.1.0
with:
version: "13.2.1"
- name: Build and Test
run: |
xcodebuild test \
-project "Example.xcodeproj" \
-scheme "Exhibition" \
-sdk "${{ matrix.sdk }}" \
-destination "${{ matrix.destination }}"
# Build Example app to test sourcery generation & validate Package.swift
example:
runs-on: macos-11
strategy:
matrix:
include:
# Latest iOS Build
- sdk: "iphonesimulator"
scheme: "Example (iOS)"
destination: "platform=iOS Simulator,OS=15.2,name=iPhone 12 Pro Max"
# Latest macOS
- sdk: "macosx12.1"
scheme: "Example (macOS)"
destination: "platform=macOS"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Select Xcode
uses: devbotsxyz/xcode-select@v1.1.0
with:
version: "13.2.1"
- name: Install sourcery
run: brew install sourcery
- name: Build and Test
run: |
xcodebuild build \
-project "Example.xcodeproj" \
-scheme "${{ matrix.scheme }}" \
-sdk "${{ matrix.sdk }}" \
-destination "${{ matrix.destination }}"