diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..90c6c43 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Test maplibre-swiftui-dsl-playground + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: macos-13 + strategy: + matrix: + scheme: [ + MapLibreSwiftUI-Package + ] + destination: [ + # TODO: Add more destinations + 'platform=iOS Simulator,name=iPhone 15,OS=17.0.1' + ] + + steps: + - name: Install xcbeautify + run: brew install xcbeautify + + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '15.0' + + - name: Checkout maplibre-swiftui-dsl-playground + uses: actions/checkout@v3 + + - name: Test ${{ matrix.scheme }} on ${{ matrix.destination }} + run: xcodebuild -scheme ${{ matrix.scheme }} test -skipMacroValidation -destination '${{ matrix.destination }}' | xcbeautify && exit ${PIPESTATUS[0]} diff --git a/.swiftpm/xcode/xcshareddata/xcschemes/MapLibreSwiftUI-Package.xcscheme b/.swiftpm/xcode/xcshareddata/xcschemes/MapLibreSwiftUI-Package.xcscheme index 153bbe3..91efa53 100644 --- a/.swiftpm/xcode/xcshareddata/xcschemes/MapLibreSwiftUI-Package.xcscheme +++ b/.swiftpm/xcode/xcshareddata/xcschemes/MapLibreSwiftUI-Package.xcscheme @@ -67,6 +67,16 @@ ReferencedContainer = "container:"> + + + +