Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisLys committed Nov 4, 2024
1 parent 6f5ecb8 commit 307a13c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 29 deletions.
59 changes: 30 additions & 29 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
3. Extensions - Содержит расширения для XCUIElement, чтобы исключить дублирование кода в методах из папки Page. И расширение определенного теста в котором работаем с системными алертами

Всего написано 15 тестов на проверку основных сценариев, которые выделил в рамках исследовательского тестирования приложения.

Результат прогонов тестов на ci можно посмотреть - https://borislys.github.io/Swift-Radio-Pro-master/

0 comments on commit 307a13c

Please sign in to comment.