Skip to content

Commit b53ad7c

Browse files
committed
ci: simplify artifact upload with upload-artifact option
1 parent 71026fb commit b53ad7c

File tree

12 files changed

+19
-126
lines changed

12 files changed

+19
-126
lines changed

.github/workflows/ai-action.yaml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,5 @@ jobs:
2525
with:
2626
report-path: './ctrf-reports/*.json'
2727
ai-report: true
28-
if: always()
29-
- name: Upload test results
30-
uses: actions/upload-artifact@v4
31-
with:
32-
name: ctrf-report
33-
path: ctrf-reports/ctrf-report.json
34-
- name: Upload test results
35-
uses: actions/upload-artifact@v4
36-
with:
37-
name: custom-artifact-name
38-
path: ctrf-reports/ctrf-report-no-fails.json
28+
upload-artifact: true
29+
if: always()

.github/workflows/commit-action.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,5 @@ jobs:
2525
with:
2626
report-path: './ctrf-reports/*.json'
2727
commit-report: true
28+
upload-artifact: true
2829
if: always()
29-
- name: Upload test results
30-
uses: actions/upload-artifact@v4
31-
with:
32-
name: ctrf-report
33-
path: ctrf-reports/ctrf-report.json
34-
- name: Upload test results
35-
uses: actions/upload-artifact@v4
36-
with:
37-
name: custom-artifact-name
38-
path: ctrf-reports/ctrf-report-no-fails.json

.github/workflows/community-action.yaml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,5 @@ jobs:
2626
report-path: './ctrf-reports/*.json'
2727
community-report-name: 'summary-short'
2828
community-report: true
29-
if: always()
30-
- name: Upload test results
31-
uses: actions/upload-artifact@v4
32-
with:
33-
name: ctrf-report
34-
path: ctrf-reports/ctrf-report.json
35-
- name: Upload test results
36-
uses: actions/upload-artifact@v4
37-
with:
38-
name: custom-artifact-name
39-
path: ctrf-reports/ctrf-report-no-fails.json
29+
upload-artifact: true
30+
if: always()

.github/workflows/custom-action.yaml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,5 @@ jobs:
2626
report-path: './ctrf-reports/*.json'
2727
template-path: './templates/custom-report.hbs'
2828
custom-report: true
29-
if: always()
30-
- name: Upload test results
31-
uses: actions/upload-artifact@v4
32-
with:
33-
name: ctrf-report
34-
path: ctrf-reports/ctrf-report.json
35-
- name: Upload test results
36-
uses: actions/upload-artifact@v4
37-
with:
38-
name: custom-artifact-name
39-
path: ctrf-reports/ctrf-report-no-fails.json
29+
upload-artifact: true
30+
if: always()

.github/workflows/detailed-action.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@ jobs:
2626
report-path: './ctrf-reports/*.json'
2727
test-report: true
2828
test-list-report: true
29+
upload-artifact: true
2930
if: always()
30-
- name: Upload test results
31-
uses: actions/upload-artifact@v4
32-
with:
33-
name: ctrf-report
34-
path: ctrf-reports/ctrf-report.json
35-
- name: Upload test results
36-
uses: actions/upload-artifact@v4
37-
with:
38-
name: custom-artifact-name
39-
path: ctrf-reports/ctrf-report-no-fails.json
31+

.github/workflows/failed-action.yaml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ jobs:
2727
failed-report: true
2828
failed-folded-report: true
2929
fail-rate-report: true
30+
upload-artifact: true
3031
env:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
if: always()
33-
- name: Upload test results
34-
uses: actions/upload-artifact@v4
35-
with:
36-
name: ctrf-report
37-
path: ctrf-reports/ctrf-report.json
38-
- name: Upload test results
39-
uses: actions/upload-artifact@v4
40-
with:
41-
name: custom-artifact-name
42-
path: ctrf-reports/ctrf-report-no-fails.json
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/flaky-action.yaml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,7 @@ jobs:
2626
report-path: './ctrf-reports/*.json'
2727
flaky-report: true
2828
flaky-rate-report: true
29+
upload-artifact: true
2930
env:
3031
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
if: always()
32-
- name: Upload test results
33-
uses: actions/upload-artifact@v4
34-
with:
35-
name: ctrf-report
36-
path: ctrf-reports/ctrf-report.json
37-
- name: Upload test results
38-
uses: actions/upload-artifact@v4
39-
with:
40-
name: custom-artifact-name
41-
path: ctrf-reports/ctrf-report-no-fails.json
32+
if: always()

.github/workflows/main.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ jobs:
3636
ai-report: true
3737
skipped-report: true
3838
custom-report: true
39+
upload-artifact: true
3940
env:
4041
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
- name: Upload test results
42-
uses: actions/upload-artifact@v4
43-
with:
44-
name: ctrf-report
45-
path: ctrf-reports/ctrf-report.json
46-
- name: Upload test results
47-
uses: actions/upload-artifact@v4
48-
with:
49-
name: custom-artifact-name
50-
path: ctrf-reports/ctrf-report-no-fails.json

.github/workflows/skipped-action.yaml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,5 @@ jobs:
2525
with:
2626
report-path: './ctrf-reports/*.json'
2727
skipped: true
28-
if: always()
29-
- name: Upload test results
30-
uses: actions/upload-artifact@v4
31-
with:
32-
name: ctrf-report
33-
path: ctrf-reports/ctrf-report.json
34-
- name: Upload test results
35-
uses: actions/upload-artifact@v4
36-
with:
37-
name: custom-artifact-name
38-
path: ctrf-reports/ctrf-report-no-fails.json
28+
upload-artifact: true
29+
if: always()

.github/workflows/suite-action.yaml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,5 @@ jobs:
2626
report-path: './ctrf-reports/*.json'
2727
suite-folded-report: true
2828
suite-list-report: true
29-
if: always()
30-
- name: Upload test results
31-
uses: actions/upload-artifact@v4
32-
with:
33-
name: ctrf-report
34-
path: ctrf-reports/ctrf-report.json
35-
- name: Upload test results
36-
uses: actions/upload-artifact@v4
37-
with:
38-
name: custom-artifact-name
39-
path: ctrf-reports/ctrf-report-no-fails.json
29+
upload-artifact: true
30+
if: always()

0 commit comments

Comments
 (0)