From bbc07cee3d880e27b939f33e451813b3f2f559aa Mon Sep 17 00:00:00 2001 From: Natalia Pozhidaeva Date: Wed, 30 Aug 2023 22:06:34 -0500 Subject: [PATCH] Revert allure report --- .github/workflows/main.yml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e94a8c1..7da5079 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,19 +40,36 @@ jobs: continue-on-error: true run: ./gradlew test -Pdriver=chrome - - name: Collect reports - run: | - echo --------------- Collecting Allure Reports.... ------------------ - zip -r allure-report.zip ./allure-report/ + - name: Get Allure history + uses: actions/checkout@v3 + id: allure-setup + continue-on-error: true + with: + ref: gh-pages + path: gh-pages + + - name: Generate Allure report + uses: simple-elf/allure-report-action@master + with: + allure_results: ./allure-results + allure_report: ./allure-report + allure_history: allure-history - name: Upload Allure report uses: actions/upload-artifact@master with: - name: allure-report-jdk${{ matrix.java }} + name: Allure report path: ./allure-report + - name: Deploy Allure report to Github Pages + uses: peaceiris/actions-gh-pages@v2 + env: + PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PUBLISH_BRANCH: gh-pages + PUBLISH_DIR: allure-history + - name: Check tests are passed if: ${{ steps.functests.outcome != 'success' }} run: | echo Tests result: ${{ steps.functests.outcome }} - exit 1 + exit 1 \ No newline at end of file