forked from OutSystems/OSInAppBrowserLib-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.22 KB
/
continuous_integration.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
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: Unit-Tests
runs-on: macos-latest
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_15.1.app
- name: Bundle Install
run: bundle install
- name: Unit tests
run: bundle exec fastlane unit_tests
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
- name: Code Coverage
run: bundle exec fastlane coverage
- name: Lint
run: bundle exec fastlane lint
- name: Setup sonarqube
uses: warchant/setup-sonar-scanner@v8
- name: Send to Sonarcloud
run: bundle exec fastlane sonarqube
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONARCLOUD_KEY }}