chore(ci): add stream_chat_localizations to pana workflow. (#1539)

This commit is contained in:
Sahil Kumar
2023-05-12 18:09:05 +05:30
committed by GitHub
parent 0b300dd32a
commit dc114d2064
+22 -2
View File
@@ -14,7 +14,7 @@ on:
- master
paths-ignore:
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
@@ -56,7 +56,7 @@ jobs:
TOTAL_MAX: ${{ steps.analysis.outputs.total_max }}
run: |
PERCENTAGE=$(( $TOTAL * 100 / $TOTAL_MAX ))
if (( $TOTAL < 90 ))
if (( $TOTAL < 120 ))
then
echo Score too low!
exit 1
@@ -97,6 +97,26 @@ jobs:
TOTAL_MAX: ${{ steps.analysis.outputs.total_max }}
run: |
if (( $TOTAL < 100 ))
then
echo Score too low!
exit 1
fi
stream_chat_localizations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: axel-op/dart-package-analyzer@v3
id: analysis
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
relativePath: packages/stream_chat_localizations
- 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: |
if (( $TOTAL < 120 ))
then
echo Score too low!
exit 1