-
-
Notifications
You must be signed in to change notification settings - Fork 10
43 lines (39 loc) · 875 Bytes
/
swift.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- '*'
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
linting:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: "Run Lint"
run: |
brew update
brew upgrade swiftformat
swiftformat . --lint
unittest:
runs-on: macos-12
needs:
- linting
strategy:
matrix:
xcode: ['14.1']
steps:
- uses: actions/checkout@v3
- name: "Select Xcode ${{ matrix.xcode }}"
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: "Clean and init submodules"
run: make init
- name: "Run test in debug"
run: make testdebug
- name: "Run test in production"
run: make testprod