-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: update the workflow to collect all results
- Loading branch information
Showing
1 changed file
with
37 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,6 +105,42 @@ jobs: | |
echo "Run in mainnet" | ||
E2ENETWORK='${{ inputs.default_network_value_for_e2e }}' npx cucumber-js --tags "${{ matrix.tags }} ${{ inputs.environmentTags }} and not @testnet" | ||
fi | ||
- 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: always() | ||
name: Save artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: allure-results | ||
path: packages/app/allure-results/* | ||
|
||
- if: failure() | ||
name: Save artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: portal_e2e_${{ github.run_number }}_artifacts | ||
path: packages/app/tests/e2e/artifacts/* | ||
|
||
publish: | ||
name: Allure Report | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
needs: e2e | ||
if: always() | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: allure-results | ||
path: packages/app/allure-results | ||
|
||
- name: Get Allure history | ||
uses: actions/checkout@v3 | ||
|
@@ -117,7 +153,7 @@ jobs: | |
- name: Allure Report action from marketplace | ||
uses: simple-elf/[email protected] | ||
if: always() | ||
#id: allure-report | ||
id: allure-report | ||
with: | ||
allure_results: packages/app/allure-results | ||
gh_pages: gh-pages | ||
|
@@ -132,34 +168,6 @@ 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 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: portal_e2e_${{ github.run_number }}_artifacts | ||
path: packages/app/tests/e2e/artifacts/* | ||
|
||
publish: | ||
name: Allure Report | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
needs: e2e | ||
if: always() | ||
steps: | ||
- name: Download allurectl | ||
run: wget https://github.com/allure-framework/allurectl/releases/latest/download/allurectl_linux_386 -O ./allurectl | ||
|
||
- name: Change permission for allurectl | ||
run: chmod +x ./allurectl | ||
|
||
- name: Prepare a link | ||
run: | | ||
|