Skip to content

chore: bump pubspec version #49

chore: bump pubspec version

chore: bump pubspec version #49

Workflow file for this run

name: CI/Coverage
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
dart-check:
name: Coverage Check
runs-on: ubuntu-latest
steps:
- name: πŸ“š Checkout
uses: actions/checkout@v4
- name: 🐦 Set up Dart
uses: dart-lang/setup-dart@v1
with:
sdk: stable
- name: πŸ“¦ Install dependencies
run: dart pub get
- name: πŸ“ Copy .env.example to .env
run: cp .env.example .env
- name: 🐘 Setup PostgreSQL
uses: ikalnytskyi/action-setup-postgres@v6
- name: πŸ“¦ Install Prisma
run: npm install prisma -g
- name: 🐘 Push database
run: prisma db push
- name: πŸ§ͺ Run tests
run: |
dart run coverage:test_with_coverage
sudo apt-get install lcov -y
# Keep only entries for handlers/*.dart and services/*.dart files (these are the files actually doing the business logic)
lcov --extract coverage/lcov.info "*/handlers/*" "*/services/*" -o coverage/lcov.info
continue-on-error: true
- name: πŸ“Š Generate Coverage
id: coverage-report
uses: whynotmake-it/dart-coverage-assistant@v1.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
lower_threshold: 60
upper_threshold: 90
compare_against_base: false