-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (33 loc) · 1.03 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
name: CI workflow
on:
pull_request:
branches: [ master ]
jobs:
build_and_test_iOS:
name: Build and Test project on iOS
runs-on: [ self-hosted, iOS ]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: xcodebuild -scheme InfomaniakLogin build -destination "platform=iOS Simulator,name=iPhone 13,OS=latest"
- name: Test
run: xcodebuild -scheme InfomaniakLogin test -destination "platform=iOS Simulator,name=iPhone 13,OS=latest"
build_and_test_macOS:
name: Build and Test project on macOS
runs-on: [ self-hosted, macOS ]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: swift build
- name: Test
run: swift test