Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lowapple authored May 3, 2023
1 parent bc7b3a8 commit 3300cdb
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
name: Workflow for Codecov Action
on: [push, pull_request]
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
run:
runs-on: [ubuntu-latest]
steps:
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3

- uses: actions/checkout@v2
- name: Install Flutter
uses: subosito/[email protected]
with:
flutter-version: '3.7.0'
- name: Install Flutter dependencies
run: flutter pub get
- name: Install coverage tools
run: flutter pub global activate coverage
- name: format coverage
run: $HOME/.pub-cache/bin/format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.packages --report-on=lib
- uses: codecov/codecov-action@v3
with:
files: coverage.lcov
verbose: true

0 comments on commit 3300cdb

Please sign in to comment.