Skip to content

feat: update pull request templates to add test type option (#214) #92

feat: update pull request templates to add test type option (#214)

feat: update pull request templates to add test type option (#214) #92

name: very_good_dart_cli
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
paths:
- .github/workflows/very_good_dart_cli.yaml
- "very_good_dart_cli/**"
branches:
- main
pull_request:
paths:
- .github/workflows/very_good_dart_cli.yaml
- "very_good_dart_cli/**"
branches:
- main
jobs:
brick:
runs-on: ubuntu-latest
strategy:
matrix:
dart-version:
# The minimum Dart SDK version supported by the package,
# refer to https://docs.flutter.dev/development/tools/sdk/releases.
- "3.5.0"
- "stable"
steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4
- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.dart-version }}
- name: 🧱 Mason Make
run: |
dart pub global activate mason_cli
mason get
mason make very_good_dart_cli -c very_good_dart_cli/config.json -o output --on-conflict overwrite
- name: 📦 Install Dependencies
run: dart pub get --directory output/test_cli
- name: ✨ Check Formatting
run: dart format --set-exit-if-changed output/test_cli
- name: 🕵️ Analyze
run: dart analyze --fatal-infos --fatal-warnings output/test_cli
- name: 🧪 Run Tests
run: |
dart pub global activate coverage 1.2.0
cd output/test_cli
dart test -j 4 --coverage=coverage
dart pub global run coverage:format_coverage --lcov --check-ignore --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on="lib"
cd ../../
- name: 📊 Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v3
with:
path: output/test_cli/coverage/lcov.info