Skip to content

Commit 21a4a4d

Browse files
committed
Update ci
1 parent dc1ee8e commit 21a4a4d

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

.github/workflows/base.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ on:
99
pull_request:
1010
branches: [main]
1111

12-
workflow_dispatch:
12+
# This ensures that previous jobs for the PR are canceled when PR is updated
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
1316

1417
jobs:
1518
build:
@@ -23,10 +26,11 @@ jobs:
2326
with:
2427
paths: "**/*.md"
2528

26-
- name: Flutter action
27-
uses: subosito/flutter-action@v2
29+
- uses: subosito/flutter-action@v2
2830
with:
2931
channel: 'stable'
32+
# use the build-in cache from Subosito
33+
cache: true
3034

3135
- name: Install dependencies
3236
run: flutter pub get
@@ -45,7 +49,7 @@ jobs:
4549
flutter build ios --debug --no-codesign
4650
4751
- name: Upload coverage to Codecov
48-
uses: codecov/codecov-action@v3
52+
uses: codecov/codecov-action@v4
4953
env:
5054
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5155
with:
@@ -67,6 +71,8 @@ jobs:
6771
uses: subosito/flutter-action@v2
6872
with:
6973
channel: 'stable'
74+
# use the build-in cache from Subosito
75+
cache: true
7076
- name: Publish package
7177
run: dart pub publish -v -f
7278

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,6 @@ pubspec.lock
7474
!**/ios/**/default.mode2v3
7575
!**/ios/**/default.pbxuser
7676
!**/ios/**/default.perspectivev3
77+
78+
# L10n files
79+
**/intl

l10n.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ synthetic-package: false
66
output-dir: lib/localization/intl
77
output-localization-file: messages.dart
88
output-class: FormBuilderLocalizationsImpl
9+
nullable-getter: false
910
#untranslated-messages-file: build/untranslated-messages.txt

0 commit comments

Comments
 (0)