-
Notifications
You must be signed in to change notification settings - Fork 44
80 lines (66 loc) · 1.68 KB
/
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
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
74
75
76
77
78
79
80
name: Swift
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
DANGER:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup Ruby
uses: ruby/[email protected]
with:
ruby-version: 3.1.2
- name: Install blunder and install deps.
run: |
gem install bundler
bundle install
- name: Run danger
run: |
bundle exec danger
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SPM:
runs-on: macos-12
steps:
- uses: maxim-lobanov/[email protected]
with:
xcode-version: latest
- uses: actions/[email protected]
- name: Test
run: swift test
POD:
runs-on: macos-11
steps:
- uses: actions/[email protected]
- name: Lint
run: pod lib lint
CARTHAGE:
runs-on: macos-12
steps:
- uses: maxim-lobanov/[email protected]
with:
xcode-version: latest
- uses: actions/[email protected]
- name: Build
run: carthage build --no-skip-current --use-xcframeworks
# - name: Archive
# run: carthage archive
# - uses: actions/[email protected]
# with:
# name: SwiftQueue
# path: SwiftQueue.framework.zip
XCODE:
runs-on: macos-12
steps:
- uses: maxim-lobanov/[email protected]
with:
xcode-version: latest
- uses: actions/[email protected]
- name: Build
run: xcodebuild -project "SwiftQueue.xcodeproj" -scheme "SwiftQueue macOS" -destination "arch=x86_64" -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES test -enableCodeCoverage YES | xcpretty
- uses: codecov/[email protected]