Skip to content

fix: replace deprecated members after upgrade #46

fix: replace deprecated members after upgrade

fix: replace deprecated members after upgrade #46

Workflow file for this run

on: push
name: Tests
jobs:
test:
name: Set up project and run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
- uses: subosito/flutter-action@v1
with:
flutter-version: '3.27.1'
- name: Download dependencies
run: flutter pub get
- name: Analyze code
run: flutter analyze
- name: Verify if code is formatted properly
run: dart format -o show --set-exit-if-changed .
- name: Run tests
run: flutter test --coverage --reporter expanded
- name: Print coverage information
run: dart run test_cov_console --coverage coverage/lcov.info
- name: Ensure test coverage is at least 65%
run: |
result=$(dart run test_cov_console --coverage coverage/lcov.info --pass=65)
echo $result
if [ "$result" = "PASSED" ]; then
exit 0
else
exit 1
fi