Skip to content

Commit 421d3ec

Browse files
Update code review workflow
1 parent 6805154 commit 421d3ec

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

.github/workflows/change-review.yml

+14-11
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,51 @@
11

2-
name: Code Quality Check
2+
name: Review changes on Dev (Commits/PRs)
33

44
on:
55
push:
6-
branched: ['develop']
6+
branches: ['dev']
77
pull_request:
88
types:
99
- opened
1010

1111
jobs:
1212
version:
13-
name: Code Checks
13+
name: code-check
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
17-
- name: set up flutter environment
16+
- name: checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: setup flutter environment
1820
uses: subosito/flutter-action@v2
1921
with:
2022
flutter-version: '3.0.0'
2123

22-
- name: Install dependencies
24+
- name: install flutter dependencies
2325
run: flutter pub get
2426

25-
- name: Run unit tests
27+
- name: run coverage tests
2628
run: flutter test --coverage
2729

28-
- name: Install lcov
30+
- name: install lcov for coverage reporting
2931
run: sudo apt-get install -y lcov
3032

31-
- name: Remove irrelevant files from coverage
33+
- name: remove irrelevant files from coverage report
3234
run: lcov --remove coverage/lcov.info 'lib/view/*.dart' 'lib/*/*.freezed.dart' 'lib/*/*.g.dart' 'lib/*/*.part.dart' 'lib/generated/*.dart' 'lib/generated/*/*.dart' -o coverage/lcov.info
3335

34-
- name: Upload coverage report to Codecov
36+
- name: upload coverage report to Codecov
3537
uses: codecov/codecov-action@v2
3638
with:
3739
file: coverage/lcov.info
3840
token: ${{ secrets.CODECOV_TOKEN }}
3941

40-
- name: push build status to Slack
42+
- name: push build status to slack
4143
uses: 8398a7/action-slack@v3
4244
with:
4345
status: ${{ job.status }}
4446
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
4547
env:
4648
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
49+
MATRIX_CONTEXT: ${{ toJson(matrix) }}
4750
if: always()
4851

0 commit comments

Comments
 (0)