diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47d7667..d5e9d9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,6 +61,8 @@ jobs: runs-on: ubuntu-latest needs: Build if: always() && needs.Build.outputs.e2e_tests_outcome != 'skipped' + env: + E2E_GH_PAGES_SUBFOLDER: e2e-tests-reports steps: - name: Download Allure results uses: actions/download-artifact@v4 @@ -77,7 +79,7 @@ jobs: uses: simple-elf/allure-report-action@v1.13 with: allure_results: e2e/out/allure-results - subfolder: e2e-tests-reports + subfolder: ${{ env.E2E_GH_PAGES_SUBFOLDER }} gh_pages: gh-pages allure_report: allure-report allure_history: allure-history @@ -87,6 +89,15 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_branch: gh-pages publish_dir: allure-history + - name: Publish tests results link + uses: guibranco/github-status-action-v2@latest + with: + authToken: ${{secrets.GITHUB_TOKEN}} + context: 'E2E tests report' + description: '' + state: ${{ needs.Build.outputs.e2e_tests_outcome }} + sha: ${{ github.event.pull_request.head.sha || github.sha }} + target_url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.E2E_GH_PAGES_SUBFOLDER }}/${{ github.run_number }} SonarScan: needs: Build