-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
35 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 |
---|---|---|
|
@@ -91,43 +91,44 @@ jobs: | |
name: Report to Allure | ||
# needs: test | ||
steps: | ||
- name: Install Homebrew | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y build-essential curl file git | ||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | ||
brew doctor | ||
|
||
# - name: Install Homebrew | ||
# run: | | ||
# sudo apt-get update | ||
# sudo apt-get install -y build-essential curl file git | ||
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
# eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | ||
# brew doctor | ||
|
||
- name: Install Allure | ||
run: brew install allure | ||
|
||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: allure-files | ||
path: ./ | ||
|
||
- name: Load test report history | ||
uses: actions/checkout@v3 | ||
if: always() | ||
continue-on-error: true | ||
with: | ||
ref: gh-pages | ||
path: gh-pages | ||
|
||
- name: Build test report | ||
uses: simple-elf/[email protected] | ||
if: always() | ||
with: | ||
gh_pages: gh-pages | ||
allure_history: allure-history | ||
allure_results: allure-files/allure-results | ||
# - name: Download artifact | ||
# uses: actions/download-artifact@v4 | ||
# with: | ||
# name: allure-files | ||
# path: ./ | ||
|
||
- name: Publish test report | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: always() | ||
with: | ||
github_token: ${{ secrets.TOKEN }} | ||
publish_branch: gh-pages | ||
publish_dir: allure-history | ||
# - name: Load test report history | ||
# uses: actions/checkout@v3 | ||
# if: always() | ||
# continue-on-error: true | ||
# with: | ||
# ref: gh-pages | ||
# path: gh-pages | ||
# | ||
# - name: Build test report | ||
# uses: simple-elf/[email protected] | ||
# if: always() | ||
# with: | ||
# gh_pages: gh-pages | ||
# allure_history: allure-history | ||
# allure_results: allure-files/allure-results | ||
# | ||
# - name: Publish test report | ||
# uses: peaceiris/actions-gh-pages@v3 | ||
# if: always() | ||
# with: | ||
# github_token: ${{ secrets.TOKEN }} | ||
# publish_branch: gh-pages | ||
# publish_dir: allure-history |