Skip to content

Commit aab7491

Browse files
Merge pull request #134 from flutter-form-builder-ecosystem/dependabot/github_actions/kuhnroyal/flutter-fvm-config-action-3
Bump kuhnroyal/flutter-fvm-config-action from 2 to 3
2 parents 14748a5 + 726deb7 commit aab7491

File tree

1 file changed

+10
-78
lines changed

1 file changed

+10
-78
lines changed

.github/workflows/base.yaml

Lines changed: 10 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -20,55 +20,35 @@ jobs:
2020
build:
2121
name: Build package & run tests
2222
runs-on: ubuntu-latest
23-
2423
steps:
2524
- name: Checkout repository
2625
uses: actions/checkout@v4
2726
with:
2827
fetch-depth: 1 # Use shallow clone for faster checkout
29-
3028
- name: Check broken links
3129
uses: JustinBeckwith/linkinator-action@v1
3230
with:
3331
paths: "**/*.md"
34-
35-
- name: Get Flutter version by FVM
36-
uses: kuhnroyal/flutter-fvm-config-action@v2
37-
id: fvm-config-action
32+
- name: Setup Flutter
33+
uses: kuhnroyal/flutter-fvm-config-action/setup@v3
3834
with:
39-
path: ".fvmrc"
40-
flavor: "stable"
41-
42-
- name: Set up Flutter
43-
uses: subosito/flutter-action@v2
44-
with:
45-
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
46-
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
47-
architecture: x64
48-
cache: true
49-
35+
path: '.fvmrc'
36+
flavor: 'stable'
5037
- name: Install dependencies
5138
run: dart pub get
52-
5339
- name: Run l10n
5440
run: flutter gen-l10n
55-
5641
- name: Run l10n on example
5742
run: flutter gen-l10n
5843
working-directory: example
59-
6044
- name: Format code
6145
run: dart format --set-exit-if-changed $(find . -name "*.dart" ! \( -wholename "./lib/localization/intl/*" -or -wholename "./example/lib/localization/intl/*" \))
62-
6346
- name: Analyze static code
6447
run: dart analyze
65-
6648
- name: Run tests
6749
run: flutter test --no-pub --coverage
68-
6950
- name: Check publish warnings
7051
run: dart pub publish --dry-run
71-
7252
- name: Upload coverage to Codecov
7353
uses: codecov/codecov-action@v4
7454
env:
@@ -81,78 +61,30 @@ jobs:
8161
example:
8262
name: Build example app
8363
runs-on: ubuntu-latest
84-
8564
steps:
8665
- name: Checkout repository
8766
uses: actions/checkout@v4
8867
with:
8968
fetch-depth: 1 # Use shallow clone for faster checkout
90-
91-
- name: Get Flutter version by FVM
92-
uses: kuhnroyal/flutter-fvm-config-action@v2
93-
id: fvm-config-action
94-
with:
95-
path: ".fvmrc"
96-
flavor: "stable"
97-
98-
- name: Set up Flutter
99-
uses: subosito/flutter-action@v2
69+
- name: Setup Flutter
70+
uses: kuhnroyal/flutter-fvm-config-action/setup@v3
10071
with:
101-
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
102-
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
103-
architecture: x64
104-
cache: true
105-
72+
path: '.fvmrc'
73+
flavor: 'stable'
10674
- name: Install dependencies
10775
run: dart pub get
108-
10976
- name: Run l10n
11077
run: flutter gen-l10n
111-
11278
- name: Run l10n on example
11379
run: flutter gen-l10n
11480
working-directory: example
115-
11681
- name: Build example
11782
run: flutter build appbundle --debug
11883
working-directory: example
11984

12085
deployment:
12186
if: ${{ github.ref_type == 'tag' }}
122-
needs: [build, example]
123-
name: Deploy package
87+
uses: flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
12488
permissions:
12589
id-token: write
126-
runs-on: ubuntu-latest
127-
steps:
128-
- name: Checkout repository
129-
uses: actions/checkout@v4
130-
with:
131-
fetch-depth: 1 # Use shallow clone for faster checkout
132-
133-
- name: Set up Dart
134-
uses: dart-lang/setup-dart@v1
135-
136-
- name: Get Flutter version by FVM
137-
uses: kuhnroyal/flutter-fvm-config-action@v2
138-
id: fvm-config-action
139-
with:
140-
path: ".fvmrc"
141-
flavor: "stable"
142-
143-
- name: Set up Flutter
144-
uses: subosito/flutter-action@v2
145-
with:
146-
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
147-
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
148-
architecture: x64
149-
cache: true
150-
151-
- name: Install dependencies
152-
run: dart pub get
153-
154-
- name: Run l10n
155-
run: flutter gen-l10n
156-
157-
- name: Publish package
158-
run: dart pub publish -v -f
90+
needs: [build, example]

0 commit comments

Comments
 (0)