-
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
2 changed files
with
32 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 |
---|---|---|
|
@@ -64,6 +64,9 @@ jobs: | |
curl -OL https://github.com/eroshenkoam/xcresults/releases/download/1.19.0/xcresults | ||
chmod +x xcresults | ||
- name: Install Allure | ||
run: brew install allure | ||
|
||
- name: Run Ui Tests | ||
run: | | ||
xcodebuild test-without-building \ | ||
|
@@ -77,53 +80,51 @@ jobs: | |
run: | | ||
mkdir allure-results | ||
./xcresults export TestResults.xcresult -o allure-results | ||
mkdir allure-report | ||
allure generate allure-results --report-dir allure-report | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: allure-results | ||
name: allure-report | ||
path: | | ||
allure-results/ | ||
retention-days: 7 | ||
allure-report/ | ||
retention-days: 1 | ||
|
||
report: | ||
runs-on: [ubuntu-latest] | ||
name: Report to Allure | ||
needs: test | ||
steps: | ||
- name: Set up Homebrew | ||
id: set-up-homebrew | ||
uses: Homebrew/actions/setup-homebrew@master | ||
|
||
- name: Install Allure | ||
run: brew install allure | ||
|
||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: allure-results | ||
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-results | ||
name: allure-report | ||
|
||
- name: Display structure of downloaded files | ||
run: ls -R | ||
|
||
|
||
# - 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-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 | ||
publish_dir: allure-report |
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