Skip to content

Commit

Permalink
Integrate pana in the CI (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mirland authored Aug 30, 2022
1 parent 1c97055 commit bc97b8c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dart-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:

- name: Run tests
run: |
dart pub global activate coverage 1.2.0
dart test --coverage=coverage && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.packages --report-on=lib
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:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Dart Code Metrics
name: Dart Metrics

on: [pull_request]

Expand All @@ -9,8 +9,14 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1

- name: dart-code-metrics
uses: dart-code-checker/dart-code-metrics-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Run pana
run: |
dart pub global activate pana
pana . --exit-code-threshold 0

0 comments on commit bc97b8c

Please sign in to comment.