From 307a13cd8be86a3aa8a6e9175974146427995aa4 Mon Sep 17 00:00:00 2001 From: Boris lysikov Date: Tue, 5 Nov 2024 01:01:06 +0700 Subject: [PATCH] add --- .github/workflows/test.yaml | 59 +++++++++++++++++++------------------ README.md | 2 ++ 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f9aaac7..f67c550 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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,48 +80,46 @@ 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/allure-report-action@v1.7 - 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/allure-report-action@v1.7 +# 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 @@ -126,4 +127,4 @@ jobs: with: github_token: ${{ secrets.TOKEN }} publish_branch: gh-pages - publish_dir: allure-history \ No newline at end of file + publish_dir: allure-report \ No newline at end of file diff --git a/README.md b/README.md index 61b1210..ab09109 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,5 @@ 3. Extensions - Содержит расширения для XCUIElement, чтобы исключить дублирование кода в методах из папки Page. И расширение определенного теста в котором работаем с системными алертами Всего написано 15 тестов на проверку основных сценариев, которые выделил в рамках исследовательского тестирования приложения. + +Результат прогонов тестов на ci можно посмотреть - https://borislys.github.io/Swift-Radio-Pro-master/