Skip to content

Commit 9be8b02

Browse files
ci: modernize artifact action (#431)
supersedes #389 supersedes #388 --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Jan Kowalleck <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 895065d commit 9be8b02

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/php.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
- cron: '42 23 * * 5'
1515

1616
concurrency:
17-
group: ${{ github.workflow }}-${{ github.ref }}
17+
group: '${{ github.workflow }}-${{ github.ref }}'
1818
cancel-in-progress: true
1919

2020
env:
@@ -111,9 +111,9 @@ jobs:
111111
- name: Artifact reports
112112
if: ${{ ! cancelled() }}
113113
# see https://github.com/actions/upload-artifact
114-
uses: actions/upload-artifact@v3
114+
uses: actions/upload-artifact@v4
115115
with:
116-
name: ${{ env.TESTS_REPORTS_ARTIFACT }}
116+
name: '${{ env.TESTS_REPORTS_ARTIFACT }}_${{ matrix.os}}_php${{ matrix.php }}_${{ matrix.dependencies }}'
117117
path: ${{ env.REPORTS_DIR }}
118118
if-no-files-found: error
119119
report-coverage:
@@ -124,14 +124,16 @@ jobs:
124124
steps:
125125
- name: fetch test artifacts
126126
# see https://github.com/actions/download-artifact
127-
uses: actions/download-artifact@v3
127+
uses: actions/download-artifact@v4
128128
with:
129-
name: ${{ env.TESTS_REPORTS_ARTIFACT }}
129+
pattern: '${{ env.TESTS_REPORTS_ARTIFACT }}_*'
130+
merge-multiple: true
130131
path: ${{ env.REPORTS_DIR }}
131132
- name: Run codacy-coverage-reporter
132133
env:
133134
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
134-
if: ${{ env.CODACY_PROJECT_TOKEN != '' }} ## see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-secrets
135+
## see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-secrets
136+
if: ${{ env.CODACY_PROJECT_TOKEN != '' }}
135137
# see https://github.com/codacy/codacy-coverage-reporter-action
136138
uses: codacy/codacy-coverage-reporter-action@v1
137139
with:
@@ -205,9 +207,9 @@ jobs:
205207
- name: Artifact reports
206208
if: ${{ ! cancelled() }}
207209
# see https://github.com/actions/upload-artifact
208-
uses: actions/upload-artifact@v3
210+
uses: actions/upload-artifact@v4
209211
with:
210-
name: ${{ env.TYPES_REPORTS_ARTIFACT }}
212+
name: '${{ env.TYPES_REPORTS_ARTIFACT }}_php${{ matrix.php }}_${{ matrix.dependencies }}'
211213
path: ${{ env.REPORTS_DIR }}
212214
if-no-files-found: error
213215
composer-unused:

0 commit comments

Comments
 (0)