Skip to content

feat(ui): voice recording attachment builder (#1907) #437

feat(ui): voice recording attachment builder (#1907)

feat(ui): voice recording attachment builder (#1907) #437

Workflow file for this run

name: pana
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
flutter_channel: "stable"
flutter_version: "3.13.9"
on:
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
push:
branches:
- master
paths-ignore:
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
stream_chat:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: flutterings/dart-package-analyzer@v1
id: analysis
with:
flutter_version: ${{ env.flutter_version }}
flutter_channel: ${{ env.flutter_channel }}
relativePath: packages/stream_chat
- 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
fi
stream_chat_persistence:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: flutterings/dart-package-analyzer@v1
id: analysis
with:
flutter_version: ${{ env.flutter_version }}
flutter_channel: ${{ env.flutter_channel }}
relativePath: packages/stream_chat_persistence
- 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 (( $TOTAL < 120 ))
then
echo Score too low!
exit 1
fi
stream_chat_flutter_core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: flutterings/dart-package-analyzer@v1
id: analysis
with:
flutter_version: ${{ env.flutter_version }}
flutter_channel: ${{ env.flutter_channel }}
relativePath: packages/stream_chat_flutter_core
- 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
fi
stream_chat_flutter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: flutterings/dart-package-analyzer@v1
id: analysis
with:
flutter_version: ${{ env.flutter_version }}
flutter_channel: ${{ env.flutter_channel }}
relativePath: packages/stream_chat_flutter
- 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 < 100 ))
then
echo Score too low!
exit 1
fi
stream_chat_localizations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: flutterings/dart-package-analyzer@v1
id: analysis
with:
flutter_version: ${{ env.flutter_version }}
flutter_channel: ${{ env.flutter_channel }}
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
fi