Skip to content

Commit 94b6afb

Browse files
Merge pull request #28 from flutter-form-builder-ecosystem/flutter-3
Flutter 3
2 parents c876cfb + 95ef930 commit 94b6afb

15 files changed

+847
-529
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/base.yaml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Base
33
on:
44
push:
55
branches: [main]
6+
tags:
7+
- '*'
68

79
pull_request:
810
branches: [main]
@@ -12,6 +14,10 @@ on:
1214
jobs:
1315
build:
1416
runs-on: macos-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
channel: [stable, beta]
1521

1622
steps:
1723
- uses: actions/checkout@v3
@@ -24,8 +30,7 @@ jobs:
2430
- name: Flutter action
2531
uses: subosito/flutter-action@v2
2632
with:
27-
channel: 'stable'
28-
flutter-version: '2.10.5'
33+
channel: ${{ matrix.channel }}
2934

3035
- name: Install dependencies
3136
run: flutter pub get
@@ -35,9 +40,42 @@ jobs:
3540
run: flutter analyze
3641
# - name: Run tests
3742
# run: flutter test
43+
- name: Check publish warnings
44+
run: dart pub publish --dry-run
3845
- name: Build example
3946
run: |
4047
cd example
4148
flutter build appbundle --debug
4249
flutter build ios --debug --no-codesign
4350
flutter build web
51+
52+
- name: Upload coverage to Codecov
53+
if: ${{ matrix.channel == 'stable' }}
54+
uses: codecov/codecov-action@v3
55+
with:
56+
files: coverage/lcov.info
57+
flags: unittests
58+
name: flutter_form_builder
59+
60+
deployment:
61+
if: ${{ github.ref_type == 'tag' }}
62+
needs: build
63+
name: Deploy package
64+
runs-on: ubuntu-latest
65+
66+
steps:
67+
- name: Configure enviroment
68+
uses: actions/checkout@v3
69+
- name: Download flutter
70+
uses: subosito/flutter-action@v2
71+
with:
72+
channel: 'stable'
73+
- name: Setup pub credentials
74+
shell: bash
75+
env:
76+
PUB_DEV_PUBLISH_ACCESS_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}
77+
PUB_DEV_PUBLISH_REFRESH_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}
78+
run: |
79+
sh ./tool/pub_login.sh
80+
- name: Publish package
81+
run: dart pub publish -v -f

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 133 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)