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

refactor: remove generator script #120

Merged
merged 13 commits into from
Nov 23, 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
44 changes: 0 additions & 44 deletions .github/workflows/generate_template.yaml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/my_cli.yaml

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/very_good_dart_cli.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: very_good_core

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

on:
push:
paths:
- .github/workflows/very_good_dart_cli.yaml
- "brick/**"
branches:
- main
pull_request:
paths:
- .github/workflows/very_good_dart_cli.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_cli -c brick/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@v2
with:
path: output/test_cli/coverage/lcov.info
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,12 @@
pubspec.lock

# Android studio and IntelliJ
.idea
.idea

# Files and directories created by mason
.mason/
mason-lock.json
output/

# Files and directories created by MacOS
.DS_Store
6 changes: 6 additions & 0 deletions brick/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"project_name": "test_cli",
"executable_name": "very_good_ventures",
"description": "very_good_core test configuration",
"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_cli:
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.

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

This file was deleted.

1 change: 0 additions & 1 deletion src/my_cli/.github/ISSUE_TEMPLATE/ config.yml

This file was deleted.

29 changes: 0 additions & 29 deletions src/my_cli/.github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

18 changes: 0 additions & 18 deletions src/my_cli/.github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

23 changes: 0 additions & 23 deletions src/my_cli/.github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

20 changes: 0 additions & 20 deletions src/my_cli/.github/cspell.json

This file was deleted.

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

This file was deleted.

55 changes: 0 additions & 55 deletions src/my_cli/.github/workflows/my_cli.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions src/my_cli/.gitignore

This file was deleted.

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

This file was deleted.

Loading