-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (46 loc) · 1.36 KB
/
unittest.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
49
50
51
52
53
54
55
56
57
58
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Unit Tests
on:
pull_request:
branches:
- 'main'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
SCHEME: "DBXCResultParser-Package"
DESTINATION: "platform=OS X"
jobs:
tests:
runs-on: 'macos-latest'
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Prepare Environment for App Build
uses: ./.github/actions/prepare_env_app_build
- name: Resolve Dependencies
run: >
xcodebuild -resolvePackageDependencies
-scheme ${{ env.SCHEME }}
-destination '${{ env.DESTINATION }}'
-quiet
- name: Build
run: >
xcodebuild build-for-testing
-scheme ${{ env.SCHEME }}
-destination '${{ env.DESTINATION }}'
-quiet
- name: Test
run: >
xcodebuild test-without-building
-scheme ${{ env.SCHEME }}
-destination '${{ env.DESTINATION }}'
-resultBundlePath ${{ env.SCHEME }}
-quiet
- name: Report
uses: kishikawakatsumi/xcresulttool@v1
continue-on-error: true
with:
path: ${{ env.SCHEME }}.xcresult
if: success() || failure()