-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.36 KB
/
ia_swift_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
name: ia-swift-ci
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "*" ]
jobs:
cleanTest:
runs-on: macos-latest
env:
PROJECT: App/App.xcodeproj
SCHEME: Default
DESTINATION: platform=iOS Simulator,name=iPod touch (7th generation),OS=latest
CONFIGURATION: Debug
steps:
- uses: actions/checkout@v3
- name : Select XCode Version
run : sudo xcode-select -switch /Applications/Xcode.app
- name : Install xcpretty
run : sudo gem install xcpretty
- name: Xcodebuild Clean Test
run: xcodebuild clean test
-project "$PROJECT"
-scheme "$SCHEME"
-configuration "$CONFIGURATION"
-destination "$DESTINATION"
-enableCodeCoverage YES | xcpretty --color
-showBuildTimingSummary
- name: IA Android CI Discord Notification
uses: sarisia/actions-status-discord@v1
if: ${{ success() }}
with:
title: ✅ Idea Archieve Android CI success ✅
webhook: ${{ secrets.IOS_DISCORD_WEBHOOK }}
color: 00FF00
- name: IA Android CI Discord Notification
uses: sarisia/actions-status-discord@v1
if: ${{ failure() }}
with:
title: ❗️ Idea Archieve Android CI failed ❗️
webhook: ${{ secrets.IOS_DISCORD_WEBHOOK }}
color: FF0000