Skip to content

Set up a GitHub workflow for Preternatural/AI #31

Set up a GitHub workflow for Preternatural/AI

Set up a GitHub workflow for Preternatural/AI #31

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.
name: Test Package
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
name: ${{ matrix.command }} on  ${{ matrix.platform }} (xcode ${{ matrix.xcode }}, ${{ matrix.macos }})
runs-on: ${{ matrix.macos }} #os switching
strategy:
fail-fast: false #if 'true' then one failed job cancels all jobs remaining
matrix:
xcode: ['15.2']
macos: ['macos-latest']
scheme: ['Earendil']
command: ['build']
platform: ['macOS']
steps:
- uses: maxim-lobanov/setup-xcode@v1.2.3
with:
xcode-version: ${{ matrix.xcode }}
- uses: mxcl/xcodebuild@v1.9.2
with:
platform: ${{ matrix.platform }}
scheme: ${{ matrix.scheme }}
action: ${{ matrix.command }}
code-coverage: true
verbosity: xcpretty
upload-logs: always