relax dependency constraints #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pana rating | |
on: [push, pull_request] | |
jobs: | |
package-analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: axel-op/dart-package-analyzer@v3 | |
id: pana_run | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check scores | |
run: | | |
MAINTENANCE_SCORE=${{ steps.pana_run.outputs.maintenance }} | |
HEALTH_SCORE=${{ steps.pana_run.outputs.health }} | |
if (( $(echo "$MAINTENANCE_SCORE < 100" | bc) )) || (( $(echo "$HEALTH_SCORE < 100" | bc) )) | |
then | |
echo "Pana scores are not both equal to 100" | |
exit 1 | |
fi |