Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/coverage-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI - Test Coverage

on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch: {}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, we still have plenty of comments explaining how GitHub action works. Can you remove them?

build:
# The type of runner that the job will run on
runs-on: ubuntu-18.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Determine the actions that will be use
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Flutter action
uses: subosito/flutter-action@v1.5.0


# Runs a set of commands using the runners shell
- name: Install dependencies
run: flutter pub get

- name: Test app
run: flutter test --coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
# Replace the following line with your own token
token: ${{ secrets.CODECOV_SECRET }}
file: coverage/lcov.info