Skip to content

Update CI configuration **. #132

Update CI configuration **.

Update CI configuration **. #132

Workflow file for this run

name: test
on:
push:
branches:
- main
- dev
paths:
- .github/workflows/**
- lib/**
- test/**
- analysis_options.yaml
- pubspec.yaml
pull_request:
defaults:
run:
shell: bash
jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
sdk:
- stable
- dev
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install Dependencies
run: dart pub get
- name: Format
run: dart format --output=none --set-exit-if-changed .
- name: Analyze
run: dart analyze --fatal-infos --fatal-warnings .
- name: Run VM Tests
run: |
dart pub global activate coverage
dart test --coverage=coverage && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: matrix.os == 'ubuntu-latest' && matrix.sdk == 'stable'
with:
token: ${{ secrets.CODECOV_TOKEN }}