Skip to content

chore(deps): bump melos from 4.1.0 to 5.1.0 #84

chore(deps): bump melos from 4.1.0 to 5.1.0

chore(deps): bump melos from 4.1.0 to 5.1.0 #84

Workflow file for this run

name: Code Coverage
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- develop
- main
pull_request:
branches:
- main
- develop
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
- name: 📦 Install Dependencies
run: |
flutter pub global activate very_good_cli
very_good packages get --recursive
- name: Run Tests
run: |
very_good test -j 4 --optimization --coverage --test-randomize-ordering-seed random
- name: Setup Lcov
uses: hrishikesh-kadam/setup-lcov@v1
- name: Cleaning lcov.info
run: |
lcov --remove ./coverage/lcov.info \
"**/*_serializer.dart" \
"**/*.g.dart" \
"**/service_locator.config.dart" \
"**/*.freezed.dart" \
"**/*_http_module.dart" \
"**/http_client.dart" \
"**/http_module.dart" \
"**/usecase.dart" \
"**/service_locator.dart" \
"**/register_module.dart" \
"**/env.dart" \
"**/*_log_*.dart" \
-o ./coverage/lcov.info
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
files: "./coverage/lcov.info"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}