Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.

Commit f745a25

Browse files
authored
refactor: remove generator script (#71)
1 parent baa389d commit f745a25

25 files changed

+85
-459
lines changed

.github/workflows/generate_template.yaml

-46
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: semantic_pull_request
22

33
concurrency:
44
group: ${{ github.workflow }}-${{ github.ref }}
@@ -15,12 +15,3 @@ on:
1515
jobs:
1616
semantic_pull_request:
1717
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1
18-
19-
spell-check:
20-
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1
21-
with:
22-
includes: "**/*.md"
23-
modified_files_only: false
24-
25-
build:
26-
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1

.github/workflows/main.yaml renamed to .github/workflows/spell_check.yaml

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: spell_check
22

33
concurrency:
44
group: ${{ github.workflow }}-${{ github.ref }}
@@ -13,14 +13,6 @@ on:
1313
- main
1414

1515
jobs:
16-
semantic_pull_request:
17-
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1
18-
19-
build:
20-
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
21-
with:
22-
working_directory: src/very_good_dart_package
23-
2416
spell-check:
2517
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1
2618
with:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: very_good_dart_package
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
push:
9+
paths:
10+
- .github/workflows/very_good_dart_package.yaml
11+
- "brick/**"
12+
branches:
13+
- main
14+
pull_request:
15+
paths:
16+
- .github/workflows/very_good_dart_package.yaml
17+
- "brick/**"
18+
branches:
19+
- main
20+
21+
jobs:
22+
brick:
23+
runs-on: ubuntu-latest
24+
25+
strategy:
26+
matrix:
27+
dart-version:
28+
# The minimum Dart SDK version supported by the package,
29+
# refer to https://docs.flutter.dev/development/tools/sdk/releases.
30+
- "3.0.0"
31+
- "stable"
32+
33+
steps:
34+
- name: 📚 Git Checkout
35+
uses: actions/checkout@v4
36+
37+
- name: 🎯 Setup Dart
38+
uses: dart-lang/setup-dart@v1
39+
with:
40+
sdk: ${{ matrix.dart-version }}
41+
42+
- name: 🧱 Mason Make
43+
run: |
44+
dart pub global activate mason_cli
45+
mason get
46+
mason make very_good_dart_package -c brick/config.json -o output --on-conflict overwrite
47+
48+
- name: 📦 Install Dependencies
49+
run: dart pub get --directory output/test_package
50+
51+
- name: ✨ Check Formatting
52+
run: dart format --set-exit-if-changed output/test_package
53+
54+
- name: 🕵️ Analyze
55+
run: dart analyze --fatal-infos --fatal-warnings output/test_package
56+
57+
- name: 🧪 Run Tests
58+
run: |
59+
dart pub global activate coverage 1.2.0
60+
cd output/test_package
61+
dart test -j 4 --coverage=coverage
62+
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"
63+
cd ../../
64+
65+
- name: 📊 Check Code Coverage
66+
uses: VeryGoodOpenSource/very_good_coverage@v2
67+
with:
68+
path: output/test_package/coverage/lcov.info

.gitignore

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.DS_Store
21
.atom/
32
.idea/*
43
.vscode/*
@@ -8,5 +7,10 @@
87
.packages
98
pubspec.lock
109

11-
# Conventional directory for build outputs
12-
build/
10+
# Files and directories created by mason
11+
.mason/
12+
mason-lock.json
13+
output/
14+
15+
# Files and directories created by MacOS
16+
.DS_Store

brick/config.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"project_name": "test_package",
3+
"description": "A generated Very Good Dart package.",
4+
"publishable": false
5+
}

mason.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
bricks:
2+
very_good_dart_package:
3+
path: brick

patches/changelog.patch

-4
This file was deleted.

patches/pubspec_publish.patch

-13
This file was deleted.

patches/workflow_pana.patch

-12
This file was deleted.

src/very_good_dart_package/.github/cspell.json

-21
This file was deleted.

src/very_good_dart_package/.github/dependabot.yaml

-11
This file was deleted.

src/very_good_dart_package/.gitignore

-7
This file was deleted.

src/very_good_dart_package/CHANGELOG.md

-3
This file was deleted.

src/very_good_dart_package/LICENSE

-21
This file was deleted.

src/very_good_dart_package/README.md

-62
This file was deleted.

src/very_good_dart_package/analysis_options.yaml

-1
This file was deleted.

src/very_good_dart_package/coverage_badge.svg

-20
This file was deleted.

src/very_good_dart_package/lib/src/very_good_dart_package.dart

-7
This file was deleted.

src/very_good_dart_package/lib/very_good_dart_package.dart

-4
This file was deleted.

src/very_good_dart_package/pubspec.yaml

-12
This file was deleted.

0 commit comments

Comments
 (0)