Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update workflow to use Very Good Dart Package #133

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 7 additions & 36 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,13 @@ jobs:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1

build:
runs-on: ubuntu-latest

strategy:
matrix:
dart-version:
- "3.5.0" # The minimum Dart SDK version supported by the package.
- "stable"

steps:
# Consider replacing this with Very Good Workflows' dart_package, once the following
# issue is resolved:
# https://github.com/VeryGoodOpenSource/very_good_workflows/issues/151
- name: 📚 Git Checkout
uses: actions/checkout@v4

- name: 🎯 Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.dart-version }}

- name: 📦 Install Dependencies
run: dart pub get --no-example

- name: ✨ Check Formatting
run: dart format --set-exit-if-changed lib test

- name: 🕵️ Analyze
run: dart analyze --fatal-infos --fatal-warnings lib test

- name: 🧪 Run Tests
run: |
dart pub global activate coverage 1.2.0
dart test -j 4 --coverage=coverage --platform="vm" && 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,test"

- name: 📊 Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v3
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
with:
dart_sdk: '3.5.0' # The minimum Dart SDK version supported by the package.
ItsAlexousd marked this conversation as resolved.
Show resolved Hide resolved
format_directories: 'lib test'
check_ignore: true
report_on: 'lib,test'
no_example: true

spell-check:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/[email protected]
Expand Down
Loading