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

refactor: remove generator script #72

Merged
merged 2 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
44 changes: 0 additions & 44 deletions .github/workflows/generate_template.yaml

This file was deleted.

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

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

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
semantic_pull_request:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.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,20 +13,11 @@ 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/flutter_package.yml@v1
with:
flutter_channel: stable
working_directory: src/very_good_flutter_package

spell-check:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1
with:
includes: |
**/*.md
!brick/**/*.md
.*/**/*.md
modified_files_only: false
modified_files_only: false
67 changes: 67 additions & 0 deletions .github/workflows/very_good_flutter_package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: very_good_flutter_package

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

on:
push:
paths:
- .github/workflows/very_good_flutter_package.yaml
- "brick/**"
branches:
- main
pull_request:
paths:
- .github/workflows/very_good_flutter_package.yaml
- "brick/**"
branches:
- main

jobs:
brick:
runs-on: ubuntu-latest

strategy:
matrix:
flutter-version:
# The version of Flutter to use should use the minimum Dart SDK version supported by the package,
# refer to https://docs.flutter.dev/development/tools/sdk/releases.
- "3.13.0"
- "any"

steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4

- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter-version }}

- name: 🧱 Mason Make
run: |
dart pub global activate mason_cli
mason get
mason make very_good_flutter_package -c brick/config.json -o output --on-conflict overwrite

- name: 📦 Install Dependencies
run: |
dart pub global activate very_good_cli
very_good packages get --recursive 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: |
cd output/test_package
very_good test -j 4 --recursive --optimization --coverage --test-randomize-ordering-seed random

- name: 📊 Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v2
with:
path: output/test_package/coverage/lcov.info
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,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 Flutter 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_flutter_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.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

25 changes: 0 additions & 25 deletions src/very_good_flutter_package/.github/workflows/main.yaml

This file was deleted.

44 changes: 0 additions & 44 deletions src/very_good_flutter_package/.gitignore

This file was deleted.

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

This file was deleted.

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

This file was deleted.

Loading