Skip to content

[dev] Update github action #1

[dev] Update github action

[dev] Update github action #1

name: Test Coverage
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.10.6"
- name: Install dependencies
run: flutter pub get
- name: Run tests with coverage
run: flutter test --coverage
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Display coverage report link
run: |
echo "Coverage report uploaded to Codecov. View the report at: https://codecov.io/gh/Nialixus/thicken"