Bump leancode_lint from 12.1.0 to 14.2.0 in /packages/cqrs in the all_dependencies group across 1 directory #235
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cqrs test | |
on: | |
push: | |
branches: [master] | |
ignore-tags: ['cqrs-v*'] | |
paths: | |
- 'packages/cqrs/**' | |
pull_request: | |
branches: [master] | |
paths: | |
- 'packages/cqrs/**' | |
jobs: | |
test: | |
name: Dart ${{ matrix.dart_release }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
dart_release: ['3.3'] | |
defaults: | |
run: | |
working-directory: packages/cqrs | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Dart | |
uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: ${{ matrix.dart_release }} | |
- name: Dart version | |
run: dart --version | |
- name: Cache pub dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ~/.pub-cache | |
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} | |
restore-keys: ${{ runner.os }}-pub- | |
- name: Download pub dependencies | |
run: dart pub get | |
- name: Run analyzer | |
run: | | |
dart analyze | |
dart run custom_lint | |
- name: Run tests with coverage | |
run: | | |
dart test --coverage=coverage | |
dart run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib | |
- name: Dry run pub publish | |
# We don't want it to fail the CI, it's just to see how would `pub publish` behave. | |
run: dart pub publish --dry-run || true | |
- uses: codecov/codecov-action@v1 | |
with: | |
flags: cqrs |