Skip to content

Adding Github Action #165

Adding Github Action

Adding Github Action #165

Workflow file for this run

name: 🧪 Run Tests
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
jobs:
build:
runs-on: macos-14 # Apple Silicon Runner
steps:
- uses: actions/checkout@v4
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Select latest Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.4'
- name: 🛠️ Run All Tests
run: |
xcodebuild test -scheme public-api-diff -destination "platform=iOS,name=Any iOS Device" -skipPackagePluginValidation | xcpretty --utf --color && exit ${PIPESTATUS[0]}