Skip to content

Commit

Permalink
add steps to upload coverage HTML files as artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
chooyan-eng committed Feb 14, 2024
1 parent 049829e commit 81be57d
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/run_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,25 @@ jobs:
flutter-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- run: flutter pub get
- run: flutter test
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Flutter
uses: subosito/flutter-action@v2

- name: Install depencencies
run: flutter pub get

- name: Run tests and generate coverage
run: flutter test --no-pub --coverage

- name: Install lcov
run: sudo apt-get -y install lcov

- name: Convert lcov.info to HTML
run: genhtml coverage/lcov.info -o coverage/html

- name: Upload coverage directory
uses: actions/upload-artifact@v4
with:
path: coverage

0 comments on commit 81be57d

Please sign in to comment.