Skip to content

Commit

Permalink
build: 👷 upload coverage results to Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
lukki15 committed Jan 5, 2025
1 parent 14f8702 commit 4dd23a2
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Coverage

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- run: flutter --version

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: adopt

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install dependencies
run: flutter pub get

- name: Download and generate build dependencies
run: bash setup.bash

- name: Run tests
run: flutter test --coverage

- name: Upload results to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 4dd23a2

Please sign in to comment.