Skip to content

Commit 1c26b97

Browse files
committed
ci: codecov v6
1 parent 8087e36 commit 1c26b97

1 file changed

Lines changed: 2 additions & 19 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
with:
3939
name: build-artifact-${{ matrix.php }}
4040
path: /tmp/github-actions
41+
retention-days: 1
4142

4243
phpunit:
4344
runs-on: ubuntu-latest
@@ -93,7 +94,7 @@ jobs:
9394
run: cat "_coverage/coverage.txt"
9495

9596
- name: Upload to Codecov
96-
uses: codecov/codecov-action@v5
97+
uses: codecov/codecov-action@v6
9798
with:
9899
token: ${{ secrets.CODECOV_TOKEN }}
99100

@@ -167,21 +168,3 @@ jobs:
167168
php_version: ${{ matrix.php }}
168169
path: src/
169170
standard: phpcs.xml
170-
171-
remove_old_artifacts:
172-
runs-on: ubuntu-latest
173-
174-
permissions:
175-
actions: write
176-
177-
steps:
178-
- name: Remove old artifacts for prior workflow runs on this repository
179-
env:
180-
GH_TOKEN: ${{ github.token }}
181-
run: |
182-
gh api "/repos/${{ github.repository }}/actions/artifacts" | jq ".artifacts[] | select(.name | startswith(\"build-artifact\")) | .id" > artifact-id-list.txt
183-
while read id
184-
do
185-
echo -n "Deleting artifact ID $id ... "
186-
gh api --method DELETE /repos/${{ github.repository }}/actions/artifacts/$id && echo "Done"
187-
done <artifact-id-list.txt

0 commit comments

Comments
 (0)