Skip to content

chore(deps): update semantic-release monorepo (major) #49

chore(deps): update semantic-release monorepo (major)

chore(deps): update semantic-release monorepo (major) #49

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
tests:
name: Unit tests
runs-on: ubuntu-latest
strategy:
matrix:
sdk: [stable]
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- 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
run: dart test
coverage:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
with:
sdk: stable
- id: install
name: Install dependencies
run: dart pub get
- name: Collect and report coverage
run: |
dart pub global activate coverage
dart pub global run coverage:test_with_coverage
- name: Upload coverage
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage/lcov.info