-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (41 loc) · 1.27 KB
/
Test_Build.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
# 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: Swift
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
jobs:
SwiftLint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Github Action For SwiftLint
uses: norio-nomura/[email protected]
Test:
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- uses: szenius/[email protected]
with:
timezoneMacos: "Asia/Seoul"
- name: Install pods
run: |
touch ./env.xcconfig
echo ${{ secrets.API_URL }} >> ./env.xcconfig
pod install --repo-update --clean-install
shell: bash
- name: Select Xcode Version
run: sudo xcode-select -s /Applications/Xcode_15.0.app
- name: Run Test
run: |
set -o pipefail && \
xcodebuild -workspace ./HANE24.xcworkspace \
-scheme 24HANE \
-destination 'platform=iOS Simulator,name=iPhone 14 Pro' \
-resultBundlePath TestResults test | xcbeautify
- uses: kishikawakatsumi/xcresulttool@v1
with:
path: TestResults.xcresult
if: success() || failure()