Skip to content

Bump codecov/codecov-action from 2 to 3 #80

Bump codecov/codecov-action from 2 to 3

Bump codecov/codecov-action from 2 to 3 #80

Workflow file for this run

name: Test
on:
push:
branches:
main
pull_request:
branches:
main
jobs:
format:
name: Format
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Dart
uses: dart-lang/setup-dart@v1
- name: Dart version
run: dart --version
- name: Download pub dependencies
run: dart pub get
- name: Validate formatting
run: |
dart format .
./.github/workflows/scripts/validate-formatting.sh
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Dart
uses: dart-lang/setup-dart@v1
- name: Dart version
run: dart --version
- name: Download pub dependencies
run: dart pub get
- name: Run tests and format coverage
run: |
dart test --coverage=coverage
dart run coverage:format_coverage --lcov --in=coverage \
--out=coverage/lcov.info --report-on=lib
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true