@@ -14,31 +14,32 @@ jobs:
1414 steps :
1515 - uses : actions/checkout@v4
1616
17- - name : Setup Flutter (Stable )
17+ - name : Setup Flutter (stable )
1818 uses : subosito/flutter-action@v2
1919 with :
2020 channel : stable
2121 cache : true
2222
23- - name : Install Package Dependencies
23+ - name : Install package dependencies
2424 run : flutter pub get
2525
26- - name : Collect coverage info
26+ - name : Run tests and collect coverage information
2727 run : flutter test --coverage
2828
29- - name : Install lcov
29+ - name : Install lcov (coverage tool)
3030 run : sudo apt install -y lcov
3131
3232 - name : Extract coverage percentage
3333 id : coverage-extractor
3434 run : |
35- percentage =$(lcov --summary coverage/lcov.info | grep 'lines' | awk '{print $2}' | sed 's/%//' | sed 's/.0$//')
36- echo "COVERAGE=$percentage " >> $GITHUB_OUTPUT
35+ coverage =$(lcov --summary coverage/lcov.info | grep 'lines' | awk '{print $2}' | sed 's/%//' | sed 's/.0$//')
36+ echo "COVERAGE=$coverage " >> $GITHUB_OUTPUT
3737
38- - name : Print the coverage percentage for testing
38+ - name : Output coverage percentage
3939 run : |
40- echo "The coverage percentage is ${{ steps.coverage-extractor.outputs.COVERAGE }}"
40+ echo "The code coverage percentage is ${{ steps.coverage-extractor.outputs.COVERAGE }}"
4141
42+ # For a detailed guide, refer to: https://bitspittle.dev/blog/2022/kover-badge
4243 - name : Update dynamic badge gist
4344 uses : schneegans/dynamic-badges-action@v1.7.0
4445 with :
0 commit comments