Skip to content

Commit

Permalink
GitHub Actions: temporarily disable axel-op/dart-package-analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
greenrobot-team committed Mar 4, 2024
1 parent 965543c commit 19a225d
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,26 +42,28 @@ jobs:
- name: Check formatting of all packages
run: dart format --set-exit-if-changed --fix .

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
# 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

coverage:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 19a225d

Please sign in to comment.