-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (29 loc) · 948 Bytes
/
unit-test.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
name: Unit Test
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
deploy:
name: Running unit tests
runs-on: macos-14
steps:
- name: Select Xcode version
run: sudo xcode-select -s '/Applications/Xcode_15.2.app/Contents/Developer'
- name: Checkout repository
uses: actions/checkout@v4.1.1
- name: Get current date
run: echo "NOW=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_ENV
- name: Test
run: xcodebuild test -scheme KukaiCryptoSwift -destination "platform=iOS Simulator,OS=17.2,name=iPhone 15" -enableCodeCoverage YES -resultBundlePath "~/xcode-$NOW.xcresult"
- name: Upload results
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v4.3.1
with:
name: "results-${{ env.NOW }}.xcresult"
path: "~/xcode-${{ env.NOW }}.xcresult"