Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): dont deploy allure report #183

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 1 addition & 70 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ jobs:
working-directory: automated-tests
run: npm ci

- name: Install Allure Commandline
run: npm install -g allure-commandline

- name: Run Playwright tests
working-directory: automated-tests
run: npx playwright test -c playwright.ci.config.ts --project=${{ matrix.project }}
Expand All @@ -60,14 +57,6 @@ jobs:
path: automated-tests/blob-report/
retention-days: 1

- name: Upload Allure results as artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: allure-results-${{ matrix.project }}
path: automated-tests/allure-results
retention-days: 1

- name: Add label if any of build jobs failed
if: failure()
uses: buildsville/[email protected]
Expand Down Expand Up @@ -155,68 +144,12 @@ jobs:
publish_dir: ./playwright-report
destination_dir: ${{ steps.timestampidone.outputs.timestamp }}

- name: Stop ssh-agent job from first deploy required for deploying a second time
run: killall ssh-agent

- name: Download Allure results artifact for desktop
uses: actions/download-artifact@v4
with:
name: allure-results-desktop-chrome
path: allure/desktop-chrome

- name: Download Allure results artifact for mobile
uses: actions/download-artifact@v4
with:
name: allure-results-mobile-chrome
path: allure/mobile-chrome

- name: Merge Allure results
run: |
mkdir -p allure-results
cp -r allure/desktop-chrome/* allure-results/
cp -r allure/mobile-chrome/* allure-results/

- name: Get Allure history
uses: actions/checkout@v4
if: always()
continue-on-error: true
with:
repository: Satellite-im/test-reports
ref: gh-pages
path: gh-pages

- name: Generate Allure Report
if: always()
uses: simple-elf/allure-report-action@master
with:
gh_pages: gh-pages
allure_results: allure-results
allure_report: allure-report
allure_history: allure-history
keep_reports: 100
github_repo: Satellite-im/test-reports
github_repo_owner: Satellite-im

- name: Set a timestamp two
id: timestampidtwo
# this will store current time with UTC in outputs.timestamp (eg of value: 20231028_233147Z)
run: echo "timestamp=$(date --utc +%Y%m%d_%H%M%SZ)" >> "$GITHUB_OUTPUT"

- name: Deploy report to Github Pages
if: success()
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
external_repository: Satellite-im/test-reports
publish_branch: gh-pages
publish_dir: ./allure-history

- name: Comment PR with Test Report link
if: always() && github.event_name == 'pull_request'
uses: mshick/add-pr-comment@v2
with:
message: |
Automated tests execution is complete! You can find the Playwright test report [here](https://satellite-im.github.io/test-reports/${{ steps.timestampidone.outputs.timestamp }}/) and the Allure Test Report [here](https://satellite-im.github.io/test-reports/${{ github.run_number }})
Automated tests execution is complete! You can find the Playwright test report [here](https://satellite-im.github.io/test-reports/${{ steps.timestampidone.outputs.timestamp }}/)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -247,8 +180,6 @@ jobs:
with:
name: |
playwright-merged-report
allure-results-desktop-chrome
allure-results-mobile-chrome

- name: Remove label if all test jobs succeeded
uses: buildsville/[email protected]
Expand Down
Loading