This repository has been archived by the owner on Jan 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
74 lines (61 loc) · 1.72 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
on:
push:
branches:
- main
pull_request:
name: Swift CI
jobs:
Lint:
runs-on: macos-latest
env:
MINT_PATH: ${{ github.workspace }}/mint
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache Mint Packages
uses: actions/cache@v1
with:
path: ${{ env.MINT_PATH }}
key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
restore-keys: ${{ runner.os }}-mint-
- name: Swift Bootstrap
run: sh swift/scripts/bootstrap.sh
- name: SwiftLint
run: mint run swiftlint
- name: SwiftFormat
run: mint run swiftformat . --lint
Test:
runs-on: macos-latest
env:
MINT_PATH: ${{ github.workspace }}/mint
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache Mint Packages
uses: actions/cache@v1
with:
path: ${{ env.MINT_PATH }}
key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
restore-keys: ${{ runner.os }}-mint-
- name: Swift Bootstrap
run: sh swift/scripts/bootstrap.sh
- name: Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Install cbindgen
uses: actions-rs/cargo@v1
with:
command: install
args: cbindgen
- name: Test
uses: sersoft-gmbh/xcodebuild-action@v1
with:
project: swift/MinecraftStatus.xcodeproj
scheme: Minecraft Status
destination: platform=iOS Simulator,name=iPhone 12
action: test
# quiet: false
# use-xcpretty: false
# hide-shell-script-environment: false