-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (41 loc) · 1.39 KB
/
continuous_integration.yml
File metadata and controls
52 lines (41 loc) · 1.39 KB
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
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: Unit-Tests
runs-on: macos-15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Link SwiftLint or install it
run: brew link --overwrite swiftlint || brew install swiftlint
- name: Set up XCode
run: sudo xcode-select --switch /Applications/Xcode_16.4.app/Contents/Developer
- name: Bundle Install
run: bundle install
- name: Unit tests
run: bundle exec fastlane unit_tests
- name: Code Coverage
run: bundle exec fastlane coverage
- name: Lint
run: bundle exec fastlane lint
- name: Setup sonarqube
uses: warchant/setup-sonar-scanner@v8
# TODO: Sonarcloud integration is failing, so continue-on-error: true was added
# to prevent blocking the pipeline. This should be revisited when we work on fixing this integration.
- name: Send to Sonarcloud
run: bundle exec fastlane sonarqube
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_KEY }}