Skip to content

Commit

Permalink
Revert "GitHub Actions: temporarily disable axel-op/dart-package-anal…
Browse files Browse the repository at this point in the history
…yzer"

This reverts commit 6cf80ee.
  • Loading branch information
greenrobot-team committed Mar 11, 2024
1 parent 2d89808 commit 3d4c533
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,26 @@ jobs:
- name: Check formatting of all packages
run: dart format --set-exit-if-changed --fix .

# Temporarily disable until axel-op/dart-package-analyzer fix for
# https://github.com/axel-op/dart-package-analyzer/issues/27 ships.
# pana:
# runs-on: ubuntu-22.04
# permissions:
# checks: write # to publish the report
# steps:
# - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
# - uses: axel-op/dart-package-analyzer@7a6c3c66bce78d82b729a1ffef2d9458fde6c8d2 # v3
# id: analysis # set an id for the current step
# with:
# githubToken: ${{ secrets.GITHUB_TOKEN }}
# relativePath: objectbox
# # You can then use this id to retrieve the outputs in the next steps.
# # The following step shows how to exit the workflow with an error if a score is below 100:
# - name: Check scores
# shell: bash
# run: |
# if (( ${{ steps.analysis.outputs.total }} < 100 )); then
# echo "Expected score 130, got ${{ steps.analysis.outputs.total }}, please check the analysis report and resolve the issues"
# exit 1
# fi
pana:
runs-on: ubuntu-22.04
permissions:
checks: write # to publish the report
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: axel-op/dart-package-analyzer@7a6c3c66bce78d82b729a1ffef2d9458fde6c8d2 # v3
id: analysis # set an id for the current step
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
relativePath: objectbox
# You can then use this id to retrieve the outputs in the next steps.
# The following step shows how to exit the workflow with an error if a score is below 100:
- name: Check scores
shell: bash
run: |
if (( ${{ steps.analysis.outputs.total }} < 100 )); then
echo "Expected score 130, got ${{ steps.analysis.outputs.total }}, please check the analysis report and resolve the issues"
exit 1
fi
coverage:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 3d4c533

Please sign in to comment.