Skip to content

Commit 35c7f21

Browse files
committed
Use github action to publish allure report (#396)
* Use github action to publish allure report * Fix glob input * Add additional options * Remove continue on error * Update publish action version * Change table tye * Override allure job name * Use specific version
1 parent dd8d16e commit 35c7f21

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59,25 +59,24 @@ jobs:
5959
runs-on: ubuntu-20.04
6060
needs: rspec
6161
if: always()
62-
continue-on-error: true
63-
container:
64-
image: andrcuns/allure-report-publisher:0.8.0
65-
env:
66-
GOOGLE_CLOUD_CREDENTIALS_JSON: ${{ secrets.GOOGLE_CLOUD_CREDENTIALS_JSON }}
67-
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6862
steps:
6963
- name: Download allure-results
7064
uses: actions/download-artifact@v3
7165
with:
7266
name: allure-results
7367
- name: Publish allure report
74-
run: |
75-
allure-report-publisher upload gcs \
76-
--results-glob="*/reports/allure-results/*" \
77-
--bucket="allure-test-reports" \
78-
--prefix="allure-ruby/$GITHUB_REF" \
79-
--update-pr="description" \
80-
--summary="behaviors" \
81-
--copy-latest \
82-
--ignore-missing-results \
83-
--color
68+
uses: andrcuns/[email protected]
69+
env:
70+
GOOGLE_CLOUD_CREDENTIALS_JSON: ${{ secrets.GOOGLE_CLOUD_CREDENTIALS_JSON }}
71+
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
ALLURE_JOB_NAME: rspec
73+
with:
74+
storageType: gcs
75+
resultsGlob: "*/reports/allure-results/*"
76+
bucket: allure-test-reports
77+
prefix: allure-ruby/$GITHUB_REF
78+
updatePr: description
79+
summary: behaviors
80+
copyLatest: true
81+
ignoreMissingResults: false
82+
summaryTableType: ascii

0 commit comments

Comments
 (0)