Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Create a codecov workflow to fix pr issues from non-org contributors #47

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions .github/workflows/dart-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,4 @@ jobs:
run: flutter analyze .

- name: Run tests
run: |
dart pub global activate coverage 1.5.0
dart test --coverage=coverage && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib

- uses: codecov/codecov-action@v3
with:
verbose: true
files: ./coverage/lcov.info
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
run: dart test
25 changes: 25 additions & 0 deletions .github/workflows/dart-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Dart codecov
on:
pull_request_target:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Run test coverage
run: |
dart pub global activate coverage 1.5.0
dart test --coverage=coverage && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib
- uses: codecov/codecov-action@v3
with:
verbose: true
files: ./coverage/lcov.info
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/dart-pana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [pull_request]
jobs:
check:
name: pana-action
runs-on: macos-latest
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
Expand Down
Loading
Loading