Skip to content

Pull changes from the dev branch. #29

Pull changes from the dev branch.

Pull changes from the dev branch. #29

Workflow file for this run

name: Review changes on Dev (Commits/PRs)
on:
push:
branches: ["dev"]
pull_request:
types:
- opened
jobs:
version:
name: code-check
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: setup flutter environment
uses: subosito/flutter-action@v2
with:
flutter-version: "3.29.2"
- name: install flutter dependencies
run: flutter pub get
- name: run coverage tests
run: flutter test --coverage
- name: install lcov for coverage reporting
run: sudo apt-get install -y lcov
- name: remove irrelevant files from coverage report
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
- name: upload coverage report to Codecov
uses: codecov/codecov-action@v2
with:
file: coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
- name: push build status to slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
MATRIX_CONTEXT: ${{ toJson(matrix) }}
if: always()