Skip to content

Commit 914d9a6

Browse files
authored
Merge pull request #3429 from teohhanhui/ci-codecov-tokenless
Update codecov/codecov-action to use tokenless upload
2 parents 53ae703 + 8923380 commit 914d9a6

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- name: Install system packages
3939
run: |
4040
apk add \
41+
bash \
4142
unzip \
4243
- name: Cache mongodb PHP extension build
4344
if: (!startsWith(matrix.php, '7.1'))
@@ -135,11 +136,11 @@ jobs:
135136
continue-on-error: true
136137
- name: Upload coverage results to Codecov
137138
if: matrix.coverage
138-
uses: codecov/codecov-action@v1.0.3
139+
uses: codecov/codecov-action@v1
139140
with:
140141
name: phpunit-php${{ matrix.php }}
141142
flags: phpunit
142-
token: ${{ secrets.CODECOV_TOKEN }}
143+
fail_ci_if_error: true
143144
continue-on-error: true
144145
- name: Upload coverage results to Coveralls
145146
if: matrix.coverage
@@ -177,6 +178,7 @@ jobs:
177178
- name: Install system packages
178179
run: |
179180
apk add \
181+
bash \
180182
unzip \
181183
- name: Cache mongodb PHP extension build
182184
if: (!startsWith(matrix.php, '7.1'))
@@ -281,11 +283,11 @@ jobs:
281283
continue-on-error: true
282284
- name: Upload coverage results to Codecov
283285
if: matrix.coverage
284-
uses: codecov/codecov-action@v1.0.3
286+
uses: codecov/codecov-action@v1
285287
with:
286288
name: behat-php${{ matrix.php }}
287289
flags: behat
288-
token: ${{ secrets.CODECOV_TOKEN }}
290+
fail_ci_if_error: true
289291
continue-on-error: true
290292
- name: Upload coverage results to Coveralls
291293
if: matrix.coverage
@@ -495,6 +497,7 @@ jobs:
495497
- name: Install system packages
496498
run: |
497499
apk add \
500+
bash \
498501
unzip \
499502
- name: Cache mongodb PHP extension build
500503
if: (!startsWith(matrix.php, '7.1'))
@@ -600,11 +603,11 @@ jobs:
600603
continue-on-error: true
601604
- name: Upload coverage results to Codecov
602605
if: matrix.coverage
603-
uses: codecov/codecov-action@v1.0.3
606+
uses: codecov/codecov-action@v1
604607
with:
605608
name: behat-php${{ matrix.php }}-legacy
606609
flags: behat_legacy
607-
token: ${{ secrets.CODECOV_TOKEN }}
610+
fail_ci_if_error: true
608611
continue-on-error: true
609612
- name: Upload coverage results to Coveralls
610613
if: matrix.coverage
@@ -1176,6 +1179,7 @@ jobs:
11761179
- name: Install system packages
11771180
run: |
11781181
apk add \
1182+
bash \
11791183
unzip \
11801184
- name: Cache mongodb PHP extension build
11811185
uses: actions/cache@v1
@@ -1265,11 +1269,11 @@ jobs:
12651269
continue-on-error: true
12661270
- name: Upload coverage results to Codecov
12671271
if: matrix.coverage
1268-
uses: codecov/codecov-action@v1.0.3
1272+
uses: codecov/codecov-action@v1
12691273
with:
12701274
name: phpunit-php${{ matrix.php }}-mongodb
12711275
flags: phpunit_mongodb
1272-
token: ${{ secrets.CODECOV_TOKEN }}
1276+
fail_ci_if_error: true
12731277
continue-on-error: true
12741278
- name: Upload coverage results to Coveralls
12751279
if: matrix.coverage
@@ -1316,6 +1320,7 @@ jobs:
13161320
- name: Install system packages
13171321
run: |
13181322
apk add \
1323+
bash \
13191324
unzip \
13201325
- name: Cache mongodb PHP extension build
13211326
uses: actions/cache@v1
@@ -1412,11 +1417,11 @@ jobs:
14121417
continue-on-error: true
14131418
- name: Upload coverage results to Codecov
14141419
if: matrix.coverage
1415-
uses: codecov/codecov-action@v1.0.3
1420+
uses: codecov/codecov-action@v1
14161421
with:
14171422
name: behat-php${{ matrix.php }}-mongodb
14181423
flags: behat_mongodb
1419-
token: ${{ secrets.CODECOV_TOKEN }}
1424+
fail_ci_if_error: true
14201425
continue-on-error: true
14211426
- name: Upload coverage results to Coveralls
14221427
if: matrix.coverage
@@ -1465,6 +1470,7 @@ jobs:
14651470
- name: Install system packages
14661471
run: |
14671472
apk add \
1473+
bash \
14681474
unzip \
14691475
- name: Cache mongodb PHP extension build
14701476
uses: actions/cache@v1
@@ -1554,11 +1560,11 @@ jobs:
15541560
continue-on-error: true
15551561
- name: Upload coverage results to Codecov
15561562
if: matrix.coverage
1557-
uses: codecov/codecov-action@v1.0.3
1563+
uses: codecov/codecov-action@v1
15581564
with:
15591565
name: phpunit-php${{ matrix.php }}-elasticsearch
15601566
flags: phpunit_elasticsearch
1561-
token: ${{ secrets.CODECOV_TOKEN }}
1567+
fail_ci_if_error: true
15621568
continue-on-error: true
15631569
- name: Upload coverage results to Coveralls
15641570
if: matrix.coverage
@@ -1607,6 +1613,7 @@ jobs:
16071613
- name: Install system packages
16081614
run: |
16091615
apk add \
1616+
bash \
16101617
unzip \
16111618
- name: Cache mongodb PHP extension build
16121619
uses: actions/cache@v1
@@ -1703,11 +1710,11 @@ jobs:
17031710
continue-on-error: true
17041711
- name: Upload coverage results to Codecov
17051712
if: matrix.coverage
1706-
uses: codecov/codecov-action@v1.0.3
1713+
uses: codecov/codecov-action@v1
17071714
with:
17081715
name: behat-php${{ matrix.php }}-elasticsearch
17091716
flags: behat_elasticsearch
1710-
token: ${{ secrets.CODECOV_TOKEN }}
1717+
fail_ci_if_error: true
17111718
continue-on-error: true
17121719
- name: Upload coverage results to Coveralls
17131720
if: matrix.coverage

0 commit comments

Comments
 (0)