feat(README): update mockup link for milestone 4 #1511
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: Flutter Application Testing | |
on: push | |
jobs: | |
flutter-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Flutter SDK | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version-file: pubspec.yaml | |
cache: true | |
- name: Install Flutter Dependencies | |
run: | | |
flutter config --no-analytics --no-cli-animations | |
flutter --version | |
flutter pub get | |
- name: Check Code Formatting | |
run: dart format --output=none --set-exit-if-changed . | |
- name: Check For Code Errors | |
run: flutter analyze | |
- name: Flutter Run Tests (coverage) | |
run: | | |
dart pub global activate dlcov | |
dlcov gen-refs | |
flutter test --coverage -r github test | |
set -o pipefail | |
dlcov -c 80 --exclude-files "*.g.dart,*firebase_options.dart" | tee coverage.out | |
- name: Save Coverage Value to ENV | |
if: github.ref_name == 'main' | |
run: echo "COVERAGE=$(tail -n 1 coverage.out | grep -oP '(?<=coverage ).+?(?=%)')" >> $GITHUB_ENV | |
- name: Update Coverage Badge | |
if: github.ref_name == 'main' | |
uses: schneegans/[email protected] | |
with: | |
auth: ${{ secrets.BADGE_GIST }} | |
gistID: 1009ca75162e4a39e4561300eadbc5c4 | |
filename: proxima_badge.json | |
label: Coverage | |
style: for-the-badge | |
message: ${{ env.COVERAGE }}% | |
valColorRange: ${{ env.COVERAGE }} | |
maxColorRange: 90 | |
minColorRange: 80 |