1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-10 17:08:39 +00:00
MTMR/.github/workflows/build-test.yml
2020-02-10 22:57:03 +00:00

29 lines
692 B
YAML

name: Swift
on: [push]
jobs:
test:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: install xcpretty
run: gem install xcpretty
- name: Force Xcode 11
run: sudo xcode-select -switch /Applications/Xcode_11.3.app
- name: Run tests
run: xcodebuild test -project MTMR.xcodeproj -scheme 'UnitTests' | xcpretty -c && exit ${PIPESTATUS[0]}
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: Build Archive
run: xcodebuild archive -project "MTMR.xcodeproj" -scheme "MTMR" -archivePath Release/App.xcarchive CODE_SIGN_IDENTITY="${{ secrets.SIGN_IDENTITY }}" | xcpretty