Skip to content

Commit 34e8c4d

Browse files
Merge branch 'main' into main
2 parents 5c4221f + d7b4c20 commit 34e8c4d

File tree

3 files changed

+55
-58
lines changed

3 files changed

+55
-58
lines changed

.fvmrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"flutter": "stable"
2+
"flutter": "stable",
3+
"flavors": {
4+
"stable": "stable",
5+
"beta": "beta"
6+
}
37
}

.github/workflows/base-beta.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Base (beta)
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 */15 * *' # Runs every 15 days for verifying changes on Flutter beta channel
6+
push:
7+
branches: [beta]
8+
tags:
9+
- '[0-9]+.[0-9]+.[0-9]+-*'
10+
11+
pull_request:
12+
branches: [beta]
13+
14+
workflow_dispatch:
15+
16+
# This ensures that previous jobs for the PR are canceled when PR is updated
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: true
20+
21+
jobs:
22+
build:
23+
uses: flutter-form-builder-ecosystem/.github/.github/workflows/minimal-quality.yaml@main
24+
with:
25+
codecov-name: form_builder_phone_field
26+
fvm-flavor: beta
27+
example:
28+
uses: flutter-form-builder-ecosystem/.github/.github/workflows/build-examples.yaml@main
29+
with:
30+
fvm-flavor: beta
31+
32+
33+
deployment:
34+
permissions:
35+
id-token: write
36+
uses: flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
37+
if: ${{ github.ref_type == 'tag' }}
38+
needs: [build, example]

.github/workflows/base.yaml

Lines changed: 12 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -4,75 +4,30 @@ on:
44
push:
55
branches: [main]
66
tags:
7-
- '[0-9]+.[0-9]+.[0-9]+*'
7+
- '[0-9]+.[0-9]+.[0-9]+'
88

99
pull_request:
1010
branches: [main]
1111

1212
workflow_dispatch:
1313

14+
# This ensures that previous jobs for the PR are canceled when PR is updated
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
1419
jobs:
1520
build:
16-
runs-on: macos-latest
17-
18-
steps:
19-
- uses: actions/checkout@v4
20-
with:
21-
fetch-depth: 1 # Use shallow clone for faster checkout
22-
23-
- name: Check broken links
24-
uses: JustinBeckwith/linkinator-action@v1
25-
with:
26-
paths: "**/*.md"
27-
28-
- name: Setup Java
29-
uses: actions/setup-java@v4
30-
with:
31-
distribution: 'zulu'
32-
java-version: '11'
33-
34-
- name: Get Flutter version by FVM
35-
uses: kuhnroyal/flutter-fvm-config-action@v2
36-
id: fvm-config-action
37-
with:
38-
path: ".fvmrc"
39-
40-
- name: Flutter action
41-
uses: subosito/flutter-action@v2
42-
with:
43-
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
44-
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
45-
architecture: x64
46-
cache: true
47-
48-
- name: Install dependencies
49-
run: flutter pub get
50-
- name: Format code
51-
run: dart format --set-exit-if-changed .
52-
- name: Analyze static code
53-
run: flutter analyze
54-
- name: Run tests
55-
run: flutter test --coverage
56-
- name: Check publish warnings
57-
run: dart pub publish --dry-run
58-
- name: Build example
59-
run: |
60-
cd example
61-
flutter build appbundle --debug
62-
flutter build ios --debug --no-codesign
21+
uses: flutter-form-builder-ecosystem/.github/.github/workflows/minimal-quality.yaml@main
22+
with:
23+
codecov-name: form_builder_phone_field
24+
example:
25+
uses: flutter-form-builder-ecosystem/.github/.github/workflows/build-examples.yaml@main
6326

64-
- name: Upload coverage to Codecov
65-
uses: codecov/codecov-action@v4
66-
env:
67-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
68-
with:
69-
files: coverage/lcov.info
70-
flags: unittests
71-
name: form_builder_phone_field
7227

7328
deployment:
7429
permissions:
7530
id-token: write
7631
uses: flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
7732
if: ${{ github.ref_type == 'tag' }}
78-
needs: build
33+
needs: [build, example]

0 commit comments

Comments
 (0)