Testing CI #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing CI | |
# Controls when the workflow will run | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-latest | |
env: | |
MINT_PATH: mint/lib | |
MINT_LINK_PATH: mint/bin | |
DEVELOPER_DIR: /Applications/Xcode_12.4.0.app/Contents/Developer | |
MINT_VER: 0.16.0 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout yonaskolb/Mint | |
uses: actions/checkout@v2 | |
with: | |
repository: yonaskolb/Mint | |
ref: ${{ env.MINT_VER }} | |
path: Mint | |
- name: Build Mint | |
run: make | |
working-directory: ./Mint | |
- run: mint --version | |
- name: Cache Mint packages | |
uses: actions/cache@v2 | |
with: | |
path: mint | |
key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }} | |
restore-keys: | | |
${{ runner.os }}-mint- | |
- name: Generate .xcodeproj | |
run: make xcodeproj | |
- name: application test | |
run: | | |
set -o pipefail | |
xcodebuild build-for-testing test-without-building -project ace-c-ios.xcodeproj -scheme Tests -resultBundlePath TestResults -configuration Debug -sdk iphonesimulator -destination "name=iPhone 12" ENABLE_TESTABILITY=YES | xcpretty -c | |
- uses: kishikawakatsumi/xcresulttool@v1.0.1 | |
with: | |
path: TestResults.xcresult | |
if: always() |