Skip to content

Add some Test and CI to tests with coverage #2

Add some Test and CI to tests with coverage

Add some Test and CI to tests with coverage #2

Workflow file for this run

name: Flutter CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Install dependencies
run: |
flutter pub get
(cd example && flutter pub get)
(cd contribution_heatmap_playground && flutter pub get)
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: Analyze project source
run: flutter analyze
- name: Run tests with coverage
run: flutter test --coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage/lcov.info