-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.43 KB
/
testing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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()