Update version 2.9.0 #141
This file contains hidden or 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
| # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | |
| name: Run Maven with GitHub CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'corretto' | |
| java-version: '17' | |
| cache: maven | |
| - name: Run test with Maven | |
| run: mvn clean test --file pom.xml | |
| - name: Get Allure history | |
| uses: actions/checkout@v4 | |
| if: always() | |
| continue-on-error: true | |
| with: | |
| ref: gh-pages | |
| path: gh-pages | |
| - name: Copy Allure history | |
| if: always() | |
| continue-on-error: true | |
| shell: bash | |
| run: | | |
| mkdir -p target/allure-results/history | |
| cp -Rr gh-pages/history/* target/allure-results/history/ || true | |
| - name: Generate Allure Report | |
| if: always() | |
| run: mvn allure:report --file pom.xml | |
| - name: Upload Extent Report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: extent-report | |
| path: exports/ExtentReports/ExtentReports.html | |
| - name: Upload Allure Report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: allure-report | |
| path: target/site/allure-maven-plugin/ | |
| - name: Upload videos for tests | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-videos | |
| path: exports/ExportData/Videos | |
| - name: Upload screenshots for tests | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-screenshots | |
| path: exports/ExportData/Images | |
| - name: Deploy Allure Report to GitHub Pages | |
| if: always() | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_branch: gh-pages | |
| publish_dir: target/site/allure-maven-plugin |