Skip to content

Commit d4c4256

Browse files
committed
Update files
1 parent a6d7bf1 commit d4c4256

File tree

15 files changed

+498
-71
lines changed

15 files changed

+498
-71
lines changed

.github/ISSUE_TEMPLATE/bug.yaml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: 🐛 Bug
2+
description: Something is crashing or not working as intended
3+
title: "[Field name or General]: <title>"
4+
labels: [bug]
5+
body:
6+
- type: checkboxes
7+
attributes:
8+
label: Is there an existing issue for this?
9+
description: Please search to see if an issue already exists for the bug you encountered.
10+
options:
11+
- label: I have searched the existing issues
12+
required: true
13+
- type: input
14+
attributes:
15+
label: Package/Plugin version
16+
description: Version number
17+
placeholder: '1.0.0'
18+
validations:
19+
required: true
20+
- type: checkboxes
21+
attributes:
22+
label: Platforms
23+
description: Please select in whats platform you tested this bug.
24+
options:
25+
- label: Android
26+
- label: iOS
27+
- label: Linux
28+
- label: MacOS
29+
- label: Web
30+
- label: Windows
31+
- type: textarea
32+
attributes:
33+
label: Flutter doctor
34+
description: Paste the output of running `flutter doctor -v`
35+
value: |
36+
<details>
37+
<summary>Flutter doctor</summary>
38+
39+
<!-- Paste the output below inside ``` and ``` -->
40+
```bash
41+
42+
```
43+
44+
</details>
45+
validations:
46+
required: true
47+
- type: textarea
48+
attributes:
49+
label: Minimal code example
50+
description: |
51+
Create a minimal code example to reproduce the issue.
52+
Try to not use external packages not related with flutter form builder ecosystem
53+
Without this we will unlikely be able to progress on the issue, and because of that
54+
we regretfully will have to close it.
55+
value: |
56+
<details>
57+
<summary>Code sample</summary>
58+
59+
<!-- Paste the output below inside ``` and ``` -->
60+
61+
```dart
62+
63+
```
64+
65+
</details>
66+
validations:
67+
required: true
68+
- type: textarea
69+
attributes:
70+
label: Current Behavior
71+
description: A concise description of what you're experiencing.
72+
validations:
73+
required: true
74+
- type: textarea
75+
attributes:
76+
label: Expected Behavior
77+
description: A concise description of what you expected to happen.
78+
validations:
79+
required: true
80+
- type: textarea
81+
attributes:
82+
label: Steps To Reproduce
83+
description: Steps to reproduce the behavior.
84+
placeholder: |
85+
1. In this environment...
86+
2. With this config...
87+
3. Run '...'
88+
4. See error...
89+
validations:
90+
required: true
91+
- type: textarea
92+
attributes:
93+
label: Aditional information
94+
placeholder: Can add images, videos, more context, etc.
95+
validations:
96+
required: false
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 📘 Documentation
2+
description: You want to report something that is wrong or missing from the documentation
3+
labels: [documentation]
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: Describe the change you would like to see
8+
placeholder: |
9+
A clear and concise description of the bug or documentation you feel is missing.
10+
For example: The Technical Reference does not include information about the FormBuilderFilterChip widget.
11+
render: Markdown
12+
validations:
13+
required: true
14+
- type: textarea
15+
attributes:
16+
label: How would the suggested change make the documentation more useful?
17+
placeholder: |
18+
Provide context for how the requested change would make the docs easier to use and improve your ability to develop successful applications with this packages.
19+
For example: It's hard to know a method exists or understand its use when you have to search through the code base to learn about it. Properly documenting it in the Technical Reference makes it easier for me to know what the flutter_fom_builder is (and is not capable of).
20+
render: Markdown
21+
validations:
22+
required: false
23+
- type: textarea
24+
attributes:
25+
label: Aditional information
26+
placeholder: Can add images, videos, more context, etc.
27+
validations:
28+
required: false

.github/ISSUE_TEMPLATE/feature.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: 🚀 Feature request
2+
description: Suggest new feature or request for this project
3+
title: "[Field name or General]: <title>"
4+
labels: [enhancement]
5+
body:
6+
- type: checkboxes
7+
attributes:
8+
label: Is there an existing issue for this?
9+
description: Please search to see if an issue already exists for the feature you requested.
10+
options:
11+
- label: I have searched the existing issues
12+
required: true
13+
- type: input
14+
attributes:
15+
label: Package/Plugin version
16+
description: Version number
17+
placeholder: '1.0.0'
18+
validations:
19+
required: true
20+
- type: textarea
21+
attributes:
22+
label: What you'd like to happen
23+
render: Markdown
24+
validations:
25+
required: true
26+
- type: textarea
27+
attributes:
28+
label: Alternatives you've considered
29+
render: Markdown
30+
validations:
31+
required: false
32+
- type: textarea
33+
attributes:
34+
label: Aditional information
35+
placeholder: Can add images, videos, more context, etc.
36+
validations:
37+
required: false

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
*Replace this paragraph with a short description of what issue this pull request (PR) solves and provide a description of the change. Consider including before/after screenshots.*
2+
3+
*List at least one fixed issue.*
4+
5+
## Pre-launch Checklist
6+
7+
- [ ] I made sure the project builds.
8+
- [ ] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
9+
- [ ] I updated `pubspec.yaml` with an appropriate new version according to the [pub versioning philosophy], or this PR is does not need version changes.
10+
- [ ] I updated `CHANGELOG.md` to add a description of the change.
11+
- [ ] I updated/added relevant documentation (doc comments with `///`).
12+
- [ ] I rebased onto `main`.
13+
- [ ] I added new tests to check the change I am making, or this PR does not need tests.
14+
- [ ] I made sure all existing and new tests are passing.
15+
- [ ] I ran `dart format .` and committed any changes.
16+
- [ ] I ran `flutter analyze` and fixed any errors.
17+
18+
<!-- References -->
19+
[Contributor Guide]: https://github.com/Baseflow/screenrecorder/blob/main/CONTRIBUTING.md
20+
[pub versioning philosophy]: https://dart.dev/tools/pub/versioning

.github/dependabot.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
enable-beta-ecosystems: true
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
- package-ecosystem: "pub"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"

.github/workflows/flutter_ioc.yaml

Lines changed: 59 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
name: flutter_ioc
22

33
on:
4+
workflow_dispatch:
5+
46
push:
5-
branches: [ main ]
7+
branches: [main]
68
paths:
7-
- 'packages/flutter_ioc/**'
8-
- '.github/workflows/flutter_ioc.yaml'
9+
- "packages/flutter_ioc/**"
10+
- ".github/workflows/flutter_ioc.yaml"
911
pull_request:
10-
branches: [ main ]
12+
branches: [main]
1113
paths:
12-
- 'packages/flutter_ioc/**'
13-
- '.github/workflows/flutter_ioc.yaml'
14+
- "packages/flutter_ioc/**"
15+
- ".github/workflows/flutter_ioc.yaml"
1416

1517
jobs:
16-
format:
18+
build:
1719
name: CI - Flutter IoC
1820

1921
runs-on: ubuntu-latest
@@ -22,11 +24,15 @@ jobs:
2224
source-directory: ./packages/flutter_ioc
2325

2426
steps:
25-
- uses: actions/checkout@v3
26-
27-
- uses: subosito/flutter-action@v2
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
30+
- name: Set up Flutter
31+
uses: subosito/flutter-action@v2
2832
with:
29-
channel: 'stable'
33+
channel: "stable"
34+
architecture: x64
35+
cache: true
3036

3137
- name: Download dependencies
3238
run: flutter pub get
@@ -35,11 +41,50 @@ jobs:
3541
- name: Run Flutter Format
3642
run: dart format --set-exit-if-changed .
3743
working-directory: ${{env.source-directory}}
38-
44+
3945
- name: Run Flutter Analyzer
4046
run: flutter analyze
4147
working-directory: ${{env.source-directory}}
4248

43-
- name: Run unit tests
44-
run: flutter test
49+
- name: Run tests
50+
run: flutter test --no-pub --coverage
51+
working-directory: ${{env.source-directory}}
52+
53+
- name: Check publish warnings
54+
run: dart pub publish --dry-run
55+
working-directory: ${{env.source-directory}}
56+
57+
deployment:
58+
if: ${{ github.ref_type == 'tag' }}
59+
needs: [build]
60+
name: Deploy package
61+
permissions:
62+
id-token: write
63+
runs-on: ubuntu-latest
64+
65+
env:
66+
source-directory: ./packages/flutter_ioc
67+
68+
steps:
69+
- name: Checkout repository
70+
uses: actions/checkout@v4
71+
with:
72+
fetch-depth: 1 # Use shallow clone for faster checkout
73+
74+
- name: Set up Dart
75+
uses: dart-lang/setup-dart@v1
76+
77+
- name: Set up Flutter
78+
uses: subosito/flutter-action@v2
79+
with:
80+
channel: "stable"
81+
architecture: x64
82+
cache: true
83+
84+
- name: Install dependencies
85+
run: dart pub get
86+
working-directory: ${{env.source-directory}}
87+
88+
- name: Publish package
89+
run: dart pub publish -v -f
4590
working-directory: ${{env.source-directory}}

0 commit comments

Comments
 (0)