-
Notifications
You must be signed in to change notification settings - Fork 13
55 lines (55 loc) · 1.59 KB
/
ci.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
name: CI
on: [push]
jobs:
run:
runs-on: macOS-latest
name: Xcode ${{ matrix.xcode }}
strategy:
matrix:
xcode: ['12']
env:
- sdk: iphonesimulator14.0
destination: platform=iOS Simulator,name=iPhone 11 Pro,OS=14.0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install and run xcodegen
run: |
brew install xcodegen
xcodegen generate
- name: Set Xcode
run: |
echo "Available Xcode versions:"
ls /Applications | grep Xcode
echo "Choosing Xcode_${{ matrix.xcode }}.app"
sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
xcodebuild -version
swift --version
swift package --version
- name: Install Dependences
run: |
pod install
- name: Build and Test
run: |
set -o pipefail && xcodebuild clean build test \
-workspace "$WORKSPACE" \
-scheme "$SCHEME" \
-destination "$DESTINATION" \
-configuration Debug \
-enableCodeCoverage YES \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
env:
WORKSPACE: GitTime.xcworkspace
SCHEME: GitTime
SDK: ${{ matrix.env.sdk }}
DESTINATION: ${{ matrix.env.destination }}
- name: Slack Notification
uses: homoluctus/slatify@master
if: always()
with:
type: ${{ job.status }}
job_name: '*Github Actions*'
mention: 'here'
mention_if: 'failure'
channel: '#logs'
url: ${{ secrets.SLACK_WEBHOOK }}