RMET-3578 ::: Create Podspec + Release Pipelines #77
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |