Skip to content

cleanup

cleanup #8

Workflow file for this run

name: build
on:
push:
branches:
- main
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
container:
image: google/dart:latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: pub get
- name: Run tests
run: pub run test
# Replace %PROJECT_NAME% to the real project name
# - name: Activate coverage package
# run: pub global activate coverage
# - name: Collect coverage in json
# run: dart --disable-service-auth-codes --enable-vm-service=8111 --pause-isolates-on-exit test/%PROJECT_NAME%_test.dart & nohup pub global run coverage:collect_coverage --port=8111 --out=coverage.json --wait-paused --resume-isolates
# - name: Convert coverage to lcov
# run: pub global run coverage:format_coverage --lcov --in=coverage.json --out=lcov.info --packages=.packages --report-on=lib
# - name: Upload coverage to Codecov
# uses: codecov/[email protected]
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# flags: unittests
# file: ./lcov.info
# name: codecov-%PROJECT_NAME%