Skip to content

Commit d2d8069

Browse files
ci: update setup
1 parent 931bae9 commit d2d8069

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/base.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
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:
1621
runs-on: macos-latest
@@ -33,6 +38,7 @@ jobs:
3338
uses: subosito/flutter-action@v2
3439
with:
3540
channel: 'stable'
41+
cache: true
3642

3743
- name: Install dependencies
3844
run: flutter pub get
@@ -43,7 +49,9 @@ jobs:
4349
- name: Run tests
4450
run: flutter test --coverage
4551
- name: Upload coverage to Codecov
46-
uses: codecov/codecov-action@v3
52+
uses: codecov/codecov-action@v4
53+
env:
54+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4755
with:
4856
files: coverage/lcov.info
4957
name: flutter_form_builder
@@ -70,5 +78,6 @@ jobs:
7078
uses: subosito/flutter-action@v2
7179
with:
7280
channel: 'stable'
81+
cache: true
7382
- name: Publish package
7483
run: dart pub publish -v -f

0 commit comments

Comments
 (0)