Skip to content

Initial commit of v3 alpha1 #166

Initial commit of v3 alpha1

Initial commit of v3 alpha1 #166

Workflow file for this run

name: watchOS Build Tests

Check failure on line 1 in .github/workflows/watchos-tests.yml

View workflow run for this annotation

GitHub Actions / watchOS Build Tests

Invalid workflow file

The workflow is not valid. .github/workflows/watchos-tests.yml: Expected mapping end
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
check-changes:
name: Check for Changes
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.filter.outputs.changed }}
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
changed:
- '.github/workflows/watchos-tests.yml'
- '**/*.swift'
build-watchos-matrix:
name: watchOS Metrix
if: ${{ github.event_name == 'push' || needs.check-changes.outputs.changed == 'true' }}
needs: check-changes
strategy:
matrix:
xcode: [ "15.4", "16.0" ]
os: [ macos-14, macos-14-large ]
runs-on: {{ $matrix.os }}
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and Test
run: xcrun xcodebuild test -scheme "Vexil-Package" -destination "platform=watchOS Simulator,name=Any watchOS Simulator Device"
build-watchos:
runs-on: ubuntu-latest
name: watchOS Tests
if: ${{ github.event_name == 'push' || needs.check-changes.outputs.changed == 'true' }}
needs: build-watchos-matrix
steps:
- name: Check build matrix status
if: ${{ needs.build-watchos-matrix.result == 'failure' }}
run: exit 1