File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -165,16 +165,44 @@ jobs:
165165 }
166166 NODE
167167
168- - name : Run Allure Action against published reports
169- if : ${{ !cancelled() && steps.check-dist.outcome == 'success' && steps.notification-reports.outcome == 'success' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
168+ - name : Upload report for action e2e
169+ if : ${{ !cancelled() && steps.notification-reports.outcome == 'success' }}
170+ uses : actions/upload-artifact@v4
171+ with :
172+ name : allure-report
173+ path : ./out/allure-report
174+ retention-days : 1
175+
176+ e2e :
177+ name : Action e2e
178+ needs : test
179+ if : ${{ !cancelled() && needs.test.result == 'success' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
180+ runs-on : ubuntu-latest
181+ steps :
182+ - uses : actions/checkout@v6
183+
184+ - name : Download published reports
185+ uses : actions/download-artifact@v4
186+ with :
187+ name : allure-report
188+ path : ./out/allure-report
189+
190+ - name : Ensure action runs without workspace node_modules
191+ run : |
192+ if [ -d node_modules ]; then
193+ echo "::error::node_modules must not exist in the e2e job so the bundled action is exercised like a published install"
194+ exit 1
195+ fi
196+
197+ - name : Run Allure Action
170198 uses : ./
171199 with :
172200 report-directory : " ./out/allure-report"
173201 github-token : ${{ github.token }}
174202 debug : " true"
175203
176204 - name : Keep quality gate preview non-blocking
177- if : ${{ !cancelled() && steps.check-dist.outcome == 'success' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }}
205+ if : ${{ !cancelled() && github.event_name == 'pull_request' }}
178206 uses : actions/github-script@v8
179207 with :
180208 script : |
You can’t perform that action at this time.
0 commit comments