Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 0 additions & 32 deletions .github/workflows/e2e.yaml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/workflows/generate_very_good_core.yaml

This file was deleted.

89 changes: 62 additions & 27 deletions .github/workflows/very_good_core.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,71 @@
name: very_good_core

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

on:
pull_request:
paths:
- ".github/workflows/very_good_core.yaml"
- "src/my_app/lib/**"
- "src/my_app/test/**"
- "src/my_app/pubspec.yaml"
- "tool/generator/**"
push:
paths:
- .github/workflows/very_good_core.yaml
- "brick/**"
branches:
- main
pull_request:
paths:
- ".github/workflows/very_good_core.yaml"
- "src/my_app/lib/**"
- "src/my_app/test/**"
- "src/my_app/pubspec.yaml"
- "tool/generator/**"
- .github/workflows/very_good_core.yaml
- "brick/**"
branches:
- main

jobs:
build:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
with:
flutter_channel: stable
flutter_version: 3.13.2
working_directory: src/my_app

spell-check:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1
with:
includes: |
**/*.md
!brick/**/*.md
.*/**/*.md
modified_files_only: false
brick:
defaults:
run:
working-directory: 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_core -c config.json -o test --on-conflict overwrite

- name: 📦 Install Dependencies
run: |
dart pub global activate very_good_cli
very_good packages get --recursive test/test_app

- name: ✨ Check Formatting
run: dart format --set-exit-if-changed test/test_app

- name: 🕵️ Analyze
run: dart analyze --fatal-infos --fatal-warnings test/test_app

- name: 🧪 Run Tests
run: |
cd test/test_app
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: brick/test/test_app/coverage/lcov.info
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ pubspec.lock

# Conventional directory for build outputs
build/

# Files and directories created by mason
.mason/
mason-lock.json
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_app",
"org_name": "very_good_ventures",
"application_id": "verygood.ventures.test",
"description": "very_good_core test configuration"
}
45 changes: 0 additions & 45 deletions e2e/README.md

This file was deleted.

1 change: 0 additions & 1 deletion e2e/analysis_options.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions e2e/dart_test.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions e2e/lib/e2e.dart

This file was deleted.

12 changes: 0 additions & 12 deletions e2e/pubspec.yaml

This file was deleted.

79 changes: 0 additions & 79 deletions e2e/test/brick/brick_test.dart

This file was deleted.

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_core:
path: brick
23 changes: 0 additions & 23 deletions src/my_app/.github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

25 changes: 0 additions & 25 deletions src/my_app/.github/cspell.json

This file was deleted.

Loading