diff --git a/.github/workflows/elastic-ci.yml b/.github/workflows/elastic-ci.yml index 0ba5276e..e3c3b68e 100644 --- a/.github/workflows/elastic-ci.yml +++ b/.github/workflows/elastic-ci.yml @@ -7,9 +7,9 @@ name: Elastic on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: formatting-analysis: @@ -55,5 +55,9 @@ jobs: run: dart run build_runner build --delete-conflicting-outputs - name: Run tests - run: flutter test - + run: flutter test --coverage + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.gitignore b/.gitignore index 24476c5d..eba293ad 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,8 @@ .history .svn/ migrate_working_dir/ +coverage/ +*.mocks.dart # IntelliJ related *.iml