From 168045847743c61cd590a11ab2b0804df3ac2e92 Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 17 Jan 2024 22:16:03 +0800 Subject: [PATCH] test: GITHUB_STEP_SUMMARY behavior --- .github/workflows/test_common.yml | 67 ++++++++++++++++--------------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/.github/workflows/test_common.yml b/.github/workflows/test_common.yml index 90f5aa46..f17d47c9 100644 --- a/.github/workflows/test_common.yml +++ b/.github/workflows/test_common.yml @@ -43,44 +43,45 @@ jobs: - run: pip install -r requirements.txt - - name: Run tests - run: pytest -n 4 --reruns 1 --alluredir=allure-results - - - name: Get allure history - if: always() - uses: actions/checkout@v4 - with: - ref: gh-pages - path: gh-pages - - - name: Setup allure report - uses: simple-elf/allure-report-action@master - if: always() - id: allure-report - with: - allure_results: allure-results - gh_pages: gh-pages - allure_history: allure-history - keep_reports: 30 - - - name: Deploy report to Github Pages - uses: peaceiris/actions-gh-pages@v3 - if: always() - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_branch: gh-pages - publish_dir: allure-history +# - name: Run tests +# run: pytest -n 4 --reruns 1 --alluredir=allure-results +# +# - name: Get allure history +# if: always() +# uses: actions/checkout@v4 +# with: +# ref: gh-pages +# path: gh-pages +# +# - name: Setup allure report +# uses: simple-elf/allure-report-action@master +# if: always() +# id: allure-report +# with: +# allure_results: allure-results +# gh_pages: gh-pages +# allure_history: allure-history +# keep_reports: 30 +# +# - name: Deploy report to Github Pages +# uses: peaceiris/actions-gh-pages@v3 +# if: always() +# with: +# github_token: ${{ secrets.GITHUB_TOKEN }} +# publish_branch: gh-pages +# publish_dir: allure-history - name: Create job summary if: always() id: job_summary run: | echo "## Run Information" >> $GITHUB_STEP_SUMMARY - echo "- **Node1**: ${{ env.NODE_1 }}" >> $GITHUB_STEP_SUMMARY - echo "- **Node2**: ${{ env.NODE_2}}" >> $GITHUB_STEP_SUMMARY - echo "- **Additonal Nodes**: ${{ env.ADDITIONAL_NODES }}" >> $GITHUB_STEP_SUMMARY - echo "## Test Results" >> $GITHUB_STEP_SUMMARY - echo "Allure report will be available at: https://waku-org.github.io/waku-interop-tests/${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY +# echo "- **Node1**: ${{ env.NODE_1 }}" >> $GITHUB_STEP_SUMMARY +# echo "- **Node2**: ${{ env.NODE_2}}" >> $GITHUB_STEP_SUMMARY +# echo "- **Additonal Nodes**: ${{ env.ADDITIONAL_NODES }}" >> $GITHUB_STEP_SUMMARY +# echo "## Test Results" >> $GITHUB_STEP_SUMMARY +# echo "Allure report will be available at: https://waku-org.github.io/waku-interop-tests/${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY + echo "SUMMARY=$GITHUB_STEP_SUMMARY" >> $GITHUB_ENV - name: Send report to Discord uses: rjstone/discord-webhook-notify@v1 @@ -88,5 +89,5 @@ jobs: with: severity: info username: ${{ github.workflow }} - details: ${{ steps.job_summary.outputs.GITHUB_STEP_SUMMARY }} + details: ${{ env.SUMMARY }} webhookUrl: ${{ secrets.DISCORD_TEST_REPORTS_WH }}