Skip to content

fix(Test): updated unit test #2

fix(Test): updated unit test

fix(Test): updated unit test #2

Workflow file for this run

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}}