Skip to content

Commit abdae16

Browse files
Updated githubactions (#55)
* Updated GithubActions Updated checkout , cache , download-artifact and upload-artifact v3 to v4 according to deprecation warnings. * Added overwrite-flag to upload-artifact Action * Upgraded codecov-action to v4
1 parent c2605ac commit abdae16

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
max-parallel: 2
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818

1919
- name: Cache Composer packages
2020
id: composer-cache
21-
uses: actions/cache@v3
21+
uses: actions/cache@v4
2222
with:
2323
path: vendor
2424
key: php-${{ matrix.version }}-${{ github.ref }}
@@ -45,7 +45,7 @@ jobs:
4545
max-parallel: 1
4646

4747
steps:
48-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@v4
4949

5050
- name: Setup PHP
5151
id: setup-php
@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: Cache Composer packages
6060
id: composer-cache
61-
uses: actions/cache@v3
61+
uses: actions/cache@v4
6262
with:
6363
path: vendor
6464
key: php-${{ matrix.version }}-${{ github.ref }}
@@ -67,10 +67,11 @@ jobs:
6767
run: php vendor/bin/phpunit --coverage-clover=coverage.xml --whitelist=./src ./tests
6868

6969
- name: Archive code coverage results
70-
uses: actions/upload-artifact@v3
70+
uses: actions/upload-artifact@v4
7171
with:
7272
name: code-coverage-report
7373
path: coverage.xml
74+
overwrite: true
7475
retention-days: 1
7576

7677

@@ -80,15 +81,15 @@ jobs:
8081

8182
steps:
8283
- name: Checkout
83-
uses: actions/checkout@v3
84+
uses: actions/checkout@v4
8485

8586
- name: Download code coverage results
86-
uses: actions/download-artifact@v3
87+
uses: actions/download-artifact@v4
8788
with:
8889
name: code-coverage-report
8990

9091
- name: Upload coverage to Codecov
91-
uses: codecov/codecov-action@v3
92+
uses: codecov/codecov-action@v4
9293
with:
9394
files: ./coverage.xml
9495
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)