Skip to content

Merge pull request #18 from OutSystems/fix/RMET-2568/update-github-ac… #135

Merge pull request #18 from OutSystems/fix/RMET-2568/update-github-ac…

Merge pull request #18 from OutSystems/fix/RMET-2568/update-github-ac… #135

name: GitHub Actions
on:
workflow_dispatch:
push:
branches: [ main, development ]
pull_request:
branches: [ main, development ]
jobs:
test:
name: Unit-Tests
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Bundle Install
run: bundle install
- name: Unit tests
run: bundle exec fastlane test
- name: Code Coverage
run: bundle exec fastlane coverage
- 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.SONAR_TOKEN }}