Skip to content

chore(deps): update codecov/codecov-action action to v3 - autoclosed #104

chore(deps): update codecov/codecov-action action to v3 - autoclosed

chore(deps): update codecov/codecov-action action to v3 - autoclosed #104

Workflow file for this run

name: "Test"
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
sdk: [2.14.0]
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Setup Dart SKD , v2.14.0
uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
run: pub get
- name: Run tests
run: dart test .
- name: Install coverage
run: pub global activate coverage
- name: Format json files to lcov
run: pub global run coverage:format_coverage -l --packages=.test -i coverage/test/ -o coverage/coverage.lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage/coverage.lcov