-
Notifications
You must be signed in to change notification settings - Fork 19
85 lines (78 loc) · 2.48 KB
/
PR_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
74
75
76
77
78
79
80
81
82
83
84
85
name: PR_CI
on: [ pull_request, workflow_dispatch ]
jobs:
test:
runs-on: macos-12
env:
working-directory: .github
DEVELOPER_DIR: /Applications/Xcode_14.0.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Run TESTS
run: bundle exec fastlane unit_test
working-directory: ${{ env.working-directory }}
- name: Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
xcode: true
xcode_archive_path: .github/test_output/SwiftCurrent.xcresult
- name: Upload Test logs
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: test-logs
path: ~/Library/Logs/scan
retention-days: 90
platform_test:
runs-on: macos-12
env:
working-directory: .github
DEVELOPER_DIR: /Applications/Xcode_14.0.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Run Multiplatform TESTS
run: bundle exec fastlane platform_test
working-directory: ${{ env.working-directory }}
cli_test:
runs-on: macos-12
env:
working-directory: .github
DEVELOPER_DIR: /Applications/Xcode_14.0.app/Contents/Developer
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
steps:
- uses: actions/checkout@v2
- name: Run CLI TESTS
run: |
bundle exec fastlane mac CLI_test
working-directory: ${{ env.working-directory }}
build_for_swift_package_manager:
runs-on: macos-12
env:
working-directory: .github
DEVELOPER_DIR: /Applications/Xcode_14.0.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Validate SwiftPM BUILDs
run: bundle exec fastlane build_swiftpm
working-directory: ${{ env.working-directory }}
build_for_cocoapods:
runs-on: macos-12
env:
working-directory: .github
DEVELOPER_DIR: /Applications/Xcode_14.0.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Validate Cocoapods Can Deploy (lib lint)
run: bundle exec fastlane cocoapods_liblint
working-directory: ${{ env.working-directory }}
lint:
runs-on: macos-12
env:
working-directory: .github
DEVELOPER_DIR: /Applications/Xcode_14.0.app/Contents/Developer
steps:
- uses: actions/checkout@v2
- name: Swiftlint
run: bundle exec fastlane lint
working-directory: ${{ env.working-directory }}