-
Notifications
You must be signed in to change notification settings - Fork 35
68 lines (55 loc) · 1.6 KB
/
merge_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
name: merge request
on:
pull_request:
inputs:
xcodeproj_path:
required: false
type: string
scheme_name:
required: false
type: string
jobs:
changelog_check:
secrets:
tinkoff_bot_pat: ${{ secrets.TINKOFF_BOT_PAT }}
uses: ./.github/workflows/check-changelog.yml
swiftformat:
runs-on: ubuntu-latest
container: ghcr.io/nicklockwood/swiftformat:0.49.18
steps:
- uses: actions/checkout@v3
- name: SwiftFormat Lint Run
run: swiftformat . --lint --config .swiftformat
swiftlint:
runs-on: ubuntu-latest
container: ghcr.io/realm/swiftlint:0.47.0
steps:
- uses: actions/checkout@v3
- name: Swiftlint Run
working-directory: ASDKSample
run: swiftlint --quiet
check:
needs: [swiftformat, swiftlint, changelog_check]
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Set up ruby env
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
- name: Bundle install
run: bundle install
- name: Pod install
working-directory: ASDKSample
run: bundle exec pod install
- name: build Package.swift
run: bundle exec fastlane build_spm
- name: Testing [Unit Tests]
run: bundle exec fastlane tests
- name: Podspecs lint
env:
XCODEPROJ_PATH: ${{ inputs.xcodeproj_path }}
SCHEME_NAME: ${{ inputs.scheme_name }}
run: bundle exec fastlane check
# check:
# uses: tinkoff-mobile-tech/workflows/.github/workflows/ios_lib.merge_request.yml@v1