From bc97b8c499be494545253df9187319cf643fcdd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Irland?= Date: Tue, 30 Aug 2022 11:18:19 -0300 Subject: [PATCH] Integrate pana in the CI (#16) --- .github/workflows/dart-ci.yml | 4 ++-- .../{dartcodemetrics.yaml => dart-metrics-checks.yaml} | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) rename .github/workflows/{dartcodemetrics.yaml => dart-metrics-checks.yaml} (63%) diff --git a/.github/workflows/dart-ci.yml b/.github/workflows/dart-ci.yml index c0085cd..80b094b 100644 --- a/.github/workflows/dart-ci.yml +++ b/.github/workflows/dart-ci.yml @@ -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: diff --git a/.github/workflows/dartcodemetrics.yaml b/.github/workflows/dart-metrics-checks.yaml similarity index 63% rename from .github/workflows/dartcodemetrics.yaml rename to .github/workflows/dart-metrics-checks.yaml index fa9b9c6..80b3164 100644 --- a/.github/workflows/dartcodemetrics.yaml +++ b/.github/workflows/dart-metrics-checks.yaml @@ -1,4 +1,4 @@ -name: Dart Code Metrics +name: Dart Metrics on: [pull_request] @@ -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