fix(Test): updated unit test #2
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: Sonar Flutter Example | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
analyze: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📚 Git Checkout | |
uses: actions/[email protected] | |
- name: Get Flutter Version From FVM config | |
id: get_flutter_version | |
run: echo "::set-output name=version::$(cat .fvm/fvm_config.json | jq -r '.flutterSdkVersion')" | |
- name: 🐦 Setup Flutter | |
uses: subosito/[email protected] | |
with: | |
flutter-version: ${{ steps.get_flutter_version.outputs.version }} | |
channel: stable | |
cache: true | |
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }} | |
- name: 📦 Install Dependencies | |
run: flutter pub get | |
- name: 🧪 Run Tests | |
run: flutter test --machine --coverage > tests.output | |
- name: 🪲 Run Sonar | |
uses: sonarsource/sonarqube-scan-action@master | |
env: | |
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}} | |
SONAR_HOST_URL: ${{secrets.SONAR_HOST_URL}} | |