Skip to content

Commit 3836aaf

Browse files
committed
chore: clean ci run on main branch
1 parent 15e5812 commit 3836aaf

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Build
22

33
on:
4+
push:
5+
branches:
6+
- main
7+
48
pull_request:
59
paths-ignore:
610
- "**.md"
@@ -32,14 +36,14 @@ jobs:
3236
working-directory: packages/dart_firebase_admin
3337

3438
steps:
35-
- uses: actions/checkout@v3.1.0
39+
- uses: actions/checkout@v4
3640

3741
- uses: subosito/flutter-action@v2.7.1
3842
with:
3943
channel: ${{ matrix.dart-version }}
4044

4145
- name: Cache pub dependencies
42-
uses: actions/cache@v3
46+
uses: actions/cache@v4
4347
with:
4448
path: ~/.pub-cache
4549
key: pub-${{ matrix.dart-version }}-${{ hashFiles('**/pubspec.lock') }}
@@ -91,7 +95,7 @@ jobs:
9195
channel: ${{ matrix.dart-version }}
9296

9397
- name: Cache pub dependencies
94-
uses: actions/cache@v3
98+
uses: actions/cache@v4
9599
with:
96100
path: ~/.pub-cache
97101
key: pub-${{ matrix.dart-version }}-${{ hashFiles('**/pubspec.lock') }}
@@ -100,7 +104,7 @@ jobs:
100104
pub-
101105
102106
- name: Cache Firebase CLI
103-
uses: actions/cache@v3
107+
uses: actions/cache@v4
104108
with:
105109
path: ~/.cache/firebase/emulators
106110
key: firebase-emulators
@@ -223,7 +227,7 @@ jobs:
223227
224228
- name: Comment coverage on PR
225229
if: matrix.dart-version == 'stable' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
226-
uses: actions/github-script@v6
230+
uses: actions/github-script@v7
227231
with:
228232
script: |
229233
const coverage = '${{ steps.coverage.outputs.coverage }}';
@@ -282,7 +286,7 @@ jobs:
282286
- name: Upload coverage to codecov
283287
if: matrix.dart-version == 'stable'
284288
continue-on-error: true
285-
uses: codecov/codecov-action@v3
289+
uses: codecov/codecov-action@v4
286290
with:
287291
files: packages/dart_firebase_admin/coverage.lcov
288292
flags: unittests
@@ -322,7 +326,7 @@ jobs:
322326
service_account: '${{ secrets.SERVICE_ACCOUNT }}'
323327

324328
- name: Cache pub dependencies
325-
uses: actions/cache@v3
329+
uses: actions/cache@v4
326330
with:
327331
path: ~/.pub-cache
328332
key: pub-${{ matrix.dart-version }}-${{ hashFiles('**/pubspec.lock') }}
@@ -367,14 +371,14 @@ jobs:
367371
working-directory: packages/dart_firebase_admin
368372

369373
steps:
370-
- uses: actions/checkout@v3.1.0
374+
- uses: actions/checkout@v4
371375

372376
- uses: subosito/flutter-action@v2.7.1
373377
with:
374378
channel: ${{ matrix.dart-version }}
375379

376380
- name: Cache pub dependencies
377-
uses: actions/cache@v3
381+
uses: actions/cache@v4
378382
with:
379383
path: ~/.pub-cache
380384
key: pub-${{ matrix.dart-version }}-${{ hashFiles('**/pubspec.lock') }}

0 commit comments

Comments
 (0)