Skip to content

Add GitHub Action to run tests on PR and master #5

Add GitHub Action to run tests on PR and master

Add GitHub Action to run tests on PR and master #5

Workflow file for this run

name: GitUpKit Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Run GitUpKit Tests
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Select Xcode version
run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
- name: Show Xcode version
run: xcodebuild -version
- name: Run GitUpKit (macOS) tests
working-directory: GitUpKit
env:
CI: true
run: |
xcodebuild test \
-scheme "GitUpKit (macOS)" \
-destination "platform=macOS" \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO