Skip to content

ci: untested coverage #7

ci: untested coverage

ci: untested coverage #7

Workflow file for this run

name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Flutter SDK
uses: subosito/flutter-action@v2
with:
flutter-version: "3.10.5"
channel: "stable"
cache: true
- name: Install Rust Language
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
- name: Test And Generate Coverage
run: |
dart pub global activate full_coverage
mkdir -p coverage
cd app
flutter pub get
dart pub global run full_coverage
flutter test --coverage
sed "s/^SF:.*lib/SF:app\/lib/g" coverage/lcov.info >> ../coverage/lcov.info
cd ..
cd packages
for d in */ ; do
cd $d
flutter pub get
dart pub global run full_coverage
flutter test --coverage
escapedPath="$(echo packages/$d | sed 's/\//\\\//g')"
sed "s/^SF:.*lib/SF:$escapedPath\/lib/g" coverage/lcov.info >> ../../coverage/lcov.info
rm -rf coverage
cd ..
done
- name: Upload Coverage
uses: codecov/codecov-action@v3
with:
files: coverage/lcov.info
fail_ci_if_error: true