Skip to content

Commit 19a84dd

Browse files
ci: migrate spdx_license to very_good_workflows/dart_package (#1670)
* ci: migrate spdx_license to Very Good Workflows Closes #1669 Co-authored-by: marcossevilla <marcossevilla@users.noreply.github.com> * fix(ci): address failing checks on PR #1670 (attempt 1/3) --------- Co-authored-by: unicoderbot[bot] <269805761+unicoderbot[bot]@users.noreply.github.com> Co-authored-by: marcossevilla <marcossevilla@users.noreply.github.com>
1 parent c2dc91b commit 19a84dd

2 files changed

Lines changed: 12 additions & 37 deletions

File tree

.github/workflows/spdx_license.yaml

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -20,42 +20,13 @@ on:
2020

2121
jobs:
2222
build_hooks:
23-
defaults:
24-
run:
25-
working-directory: tool/spdx_license/hooks
26-
27-
runs-on: ubuntu-latest
28-
29-
# This job can be replaced by VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1,
30-
# once the following issue is resolved:
31-
# https://github.com/VeryGoodOpenSource/very_good_workflows/issues/150
32-
steps:
33-
- name: 📚 Git Checkout
34-
uses: actions/checkout@v7
35-
36-
- name: 🎯 Setup Dart
37-
uses: dart-lang/setup-dart@v1
38-
with:
39-
sdk: "3.12.0"
40-
41-
- name: 📦 Install Dependencies
42-
run: dart pub get
43-
44-
- name: ✨ Check Formatting
45-
run: dart format --set-exit-if-changed .
46-
47-
- name: 🕵️ Analyze
48-
run: dart analyze --fatal-infos --fatal-warnings
49-
50-
- name: 🧪 Run Tests
51-
run: |
52-
dart pub global activate coverage 1.15.0
53-
dart pub run test -j 4 --run-skipped --coverage=coverage --test-randomize-ordering-seed random && dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on="pre_gen,post_gen"
54-
55-
- name: 📊 Check Code Coverage
56-
uses: VeryGoodOpenSource/very_good_coverage@v3.0.0
57-
with:
58-
path: tool/spdx_license/hooks/coverage/lcov.info
23+
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
24+
with:
25+
dart_sdk: "3.12.0"
26+
working_directory: tool/spdx_license/hooks
27+
analyze_directories: "."
28+
report_on: "pre_gen,post_gen"
29+
run_skipped: true
5930

6031
build_brick:
6132
defaults:

tool/spdx_license/test/spdx_license.gen.dart

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)