Test failure fix for Dart 3.5 - tests now working on Windows for Dart… #203
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 Analysis | |
on: | |
push: | |
branches: | |
- master | |
- development | |
jobs: | |
package-analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: axel-op/dart-package-analyzer@v3 | |
id: analysis # set an id for the current step | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
# 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 | |
env: | |
# NB: "analysis" is the id set above. Replace it with the one you used if different. | |
TOTAL: ${{ steps.analysis.outputs.total }} | |
TOTAL_MAX: ${{ steps.analysis.outputs.total_max }} | |
run: | | |
PERCENTAGE=$(( $TOTAL * 100 / $TOTAL_MAX )) | |
if (( $PERCENTAGE < 50 )) | |
then | |
echo Score too low! | |
exit 1 | |
fi |