Skip to content

Commit

Permalink
test: debug path
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheremu committed Oct 26, 2023
1 parent 7ef9db5 commit 9c3c1c8
Showing 1 changed file with 25 additions and 21 deletions.
46 changes: 25 additions & 21 deletions .github/workflows/app-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,6 @@ jobs:
# run: |
# echo "ALLURE_LAUNCH_ID=$(./allurectl launch create --launch-name '${{ env.ALLURE_LAUNCH_NAME }}' --no-header --format ID | tail -n1)" >> $GITHUB_ENV

- name: Upload tests to the Allure proj
if: always() && inputs.publish_to_allure == true
env:
ALLURE_TOKEN: ${{ secrets.ALLURE_TOKEN }}
run: |
./allurectl upload allure-results
- name: Get Allure history
uses: actions/checkout@v3
if: always()
Expand All @@ -135,14 +128,21 @@ jobs:
ref: gh-pages
path: gh-pages

- name: ls dir
if: always()
run: |
ls
ls packages/
ls packages/app/
- name: Allure Report action from marketplace
uses: simple-elf/[email protected]
if: always()
#id: allure-report
with:
allure_results: allure-results
#gh_pages: gh-pages
#allure_report: allure-report
allure_results: packages/app/allure-results
gh_pages: gh-pages
allure_report: allure-report
allure_history: allure-history
keep_reports: 15

Expand All @@ -153,6 +153,13 @@ jobs:
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: allure-history

- name: Upload tests to the Allure proj
if: always() && inputs.publish_to_allure == true
env:
ALLURE_TOKEN: ${{ secrets.ALLURE_TOKEN }}
run: |
./allurectl upload allure-results
- if: failure()
name: Save artifacts
Expand All @@ -176,16 +183,13 @@ jobs:
- name: Publish Allure link to GIT Summary
run: |
LINK1="${{ vars.ALLURE_ENDPOINT }}project/${{ vars.ALLURE_PROJECT_ID }}/launches?search=${{ env.BASE64_SEARCH_REQUEST }}"
LINK2="https://raw.githack.com/matter-labs/block-explorer/tree/gh-pages/${{ github.run_number }}/index.html"
LINK2="https://raw.githack.com/matter-labs/block-explorer/gh-pages/${{ github.run_number }}/index.html"
echo "Allure [Private]($LINK1) and [Public]($LINK2) links:rocket: in git run #${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY
# - name: Post the link to the report
# if: always()
# uses: Sibz/github-status-action@v1
# with:
# authToken: ${{ secrets.GITHUB_TOKEN }}
# context: 'Public test report'
# state: 'success'
# sha: ${{ github.event.pull_request.head.sha }}
# target_url: https://raw.githack.com/matter-labs/block-explorer/tree/gh-pages/${{ github.run_number }}/index.html
- name: Close test run
if: always()
env:
ALLURE_TOKEN: ${{ secrets.ALLURE_TOKEN }}
run: |
./allurectl launch close

0 comments on commit 9c3c1c8

Please sign in to comment.