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

refactor: remove generator script #71

Merged
merged 3 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
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
46 changes: 0 additions & 46 deletions .github/workflows/generate_template.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: semantic_pull_request

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -15,12 +15,3 @@ on:
jobs:
semantic_pull_request:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1

spell-check:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1
with:
includes: "**/*.md"
modified_files_only: false

build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: spell_check

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -13,14 +13,6 @@ on:
- main

jobs:
semantic_pull_request:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1

build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
with:
working_directory: src/very_good_dart_package

spell-check:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1
with:
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/very_good_dart_package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: very_good_dart_package

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
paths:
- .github/workflows/very_good_dart_package.yaml
- "brick/**"
branches:
- main
pull_request:
paths:
- .github/workflows/very_good_dart_package.yaml
- "brick/**"
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.0.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_package -c brick/config.json -o output --on-conflict overwrite

- name: 📦 Install Dependencies
run: dart pub get --directory output/test_package

- name: ✨ Check Formatting
run: dart format --set-exit-if-changed output/test_package

- name: 🕵️ Analyze
run: dart analyze --fatal-infos --fatal-warnings output/test_package

- name: 🧪 Run Tests
run: |
dart pub global activate coverage 1.2.0
cd output/test_package
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@v2
with:
path: output/test_package/coverage/lcov.info
10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.DS_Store
.atom/
.idea/*
.vscode/*
Expand All @@ -8,5 +7,10 @@
.packages
pubspec.lock

# Conventional directory for build outputs
build/
# Files and directories created by mason
.mason/
mason-lock.json
output/

# Files and directories created by MacOS
.DS_Store
5 changes: 5 additions & 0 deletions brick/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"project_name": "test_package",
"description": "A generated Very Good Dart package.",
"publishable": false
}
3 changes: 3 additions & 0 deletions mason.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bricks:
very_good_dart_package:
path: brick
4 changes: 0 additions & 4 deletions patches/changelog.patch

This file was deleted.

13 changes: 0 additions & 13 deletions patches/pubspec_publish.patch

This file was deleted.

12 changes: 0 additions & 12 deletions patches/workflow_pana.patch

This file was deleted.

21 changes: 0 additions & 21 deletions src/very_good_dart_package/.github/cspell.json

This file was deleted.

11 changes: 0 additions & 11 deletions src/very_good_dart_package/.github/dependabot.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions src/very_good_dart_package/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions src/very_good_dart_package/CHANGELOG.md

This file was deleted.

21 changes: 0 additions & 21 deletions src/very_good_dart_package/LICENSE

This file was deleted.

62 changes: 0 additions & 62 deletions src/very_good_dart_package/README.md

This file was deleted.

1 change: 0 additions & 1 deletion src/very_good_dart_package/analysis_options.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions src/very_good_dart_package/coverage_badge.svg

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions src/very_good_dart_package/lib/very_good_dart_package.dart

This file was deleted.

12 changes: 0 additions & 12 deletions src/very_good_dart_package/pubspec.yaml

This file was deleted.

Loading