-
Notifications
You must be signed in to change notification settings - Fork 2
99 lines (80 loc) · 2.24 KB
/
pull-request.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Pull Request
on:
pull_request:
paths-ignore:
- '*.md'
- '.github/**'
- Bucketeer/Sources/Internal/Utils/Version.swift
- Bucketeer.podspec
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint_swift:
runs-on: macos-13-xlarge
steps:
- uses: actions/checkout@v4
- name: Install bootstrap mint
uses: irgaly/setup-mint@99eaad2ad1197ea872390322a47620da2f21fde4 # v1.4.0
with:
bootstrap: true
use-cache: true
- name: Lint swift
run: mint run swiftlint --strict
lint_pod:
runs-on: macos-13-xlarge
steps:
- uses: actions/checkout@v4
- name: Lint Pods
run: pod lib lint --allow-warnings
generate-xcode-project:
uses: ./.github/workflows/generate-xcode-project.yml
build:
needs: generate-xcode-project
runs-on: macos-13-xlarge
steps:
- uses: actions/checkout@v4
- name: Download xcode project file
uses: actions/download-artifact@v4
with:
name: output-xcodeproj-file
path: ./Bucketeer.xcodeproj
- name: Build
env:
CI: true
run: make build
build-example:
needs: generate-xcode-project
runs-on: macos-13-xlarge
steps:
- uses: actions/checkout@v4
- name: Download environment file
uses: actions/download-artifact@v4
with:
name: output-environment-file
path: ./environment.xcconfig
- name: Download xcode project file
uses: actions/download-artifact@v4
with:
name: output-xcodeproj-file
path: ./Bucketeer.xcodeproj
- name: Build example
env:
CI: true
run: make build-example
test:
needs: generate-xcode-project
runs-on: macos-13-xlarge
steps:
- uses: actions/checkout@v4
- name: Download xcode project file
uses: actions/download-artifact@v4
with:
name: output-xcodeproj-file
path: ./Bucketeer.xcodeproj
- name: Build for testing
env:
CI: true
run: make build-for-testing
- name: Unit Test
run: make test-without-building