Files
flutter/.github/workflows/ci.yml
2025-03-31 12:24:21 +02:00

45 lines
1.1 KiB
YAML

name: Continous Integration
on:
push:
paths:
- '**.dart'
- 'pubspec.yaml'
pull_request:
branches: [ master, ]
paths:
- '**.dart'
- 'pubspec.yaml'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
cache: true
channel: 'stable'
flutter-version: '3.29.x'
- run: dart --version
- run: flutter --version
- name: Install sqlite3-dev
run: sudo apt install libsqlite3-dev lcov
- name: Install app dependencies
run: flutter pub get
# Removing some folders from the coverage since these files are not really
# part of the app code and just get in the way of the report
- name: Test app
run: |
flutter test --coverage
lcov --remove coverage/lcov.info 'lib/l10n/generated/*' 'lib/theme/*'
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}