diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..27caa1f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: "nexus" + +on: + push: + branches: + - main + - dev + pull_request: + branches: [ main ] + +concurrency: + group: ci + cancel-in-progress: true + +jobs: + Latest: + name: Test Latest (iOS, watchOS) + runs-on: macOS-12 + env: + DEVELOPER_DIR: "/Applications/Xcode_14.1.app/Contents/Developer" + timeout-minutes: 10 + strategy: + fail-fast: false + matrix: + include: + - destination: "OS=16.1,name=iPhone 14 Pro" + name: "iOS" + scheme: "Nexus" + - destination: "OS=9.1,name=Apple Watch Series 8 (45mm)" + name: "watchOS" + scheme: "Nexus" + steps: + - uses: actions/checkout@v3 + - name: ${{ matrix.name }} + run: xcodebuild test -scheme "${{ matrix.scheme }}" -destination "${{ matrix.destination }}" clean \ No newline at end of file