Skip to content

Merge pull request #2 from namib-project/remove-gitlab-files #6

Merge pull request #2 from namib-project/remove-gitlab-files

Merge pull request #2 from namib-project/remove-gitlab-files #6

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- name: Install dependencies
run: dart pub get
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- name: Analyze project source
run: dart analyze
- name: Run tests with coverage
run: dart test --coverage="coverage"
- name: Convert coverage to ICOV
run: dart run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --report-on=lib
- uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.lcov
name: Upload to codecov.io
verbose: true