{update allure version to 2.13.6} #6
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
name: allure-junit4-gradle-kts | |
on: | |
push: | |
branches-ignore: | |
- '!master' | |
jobs: | |
autotests: | |
name: Run tests and generate Allure Report | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v1 | |
with: | |
path: | | |
~/.m2/repository | |
~/.gradle/caches | |
key: ${{ runner.os }}-${{ github.workflow }}-${{ hashFiles('**/build.gradle.kts') }} | |
restore-keys: | | |
${{ runner.os }}-${{ github.workflow }}- | |
- name: Set up JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Install dependencies | |
run: ./gradlew compileTestJava | |
- name: Run Test | |
if: always() | |
run: ./gradlew test | |
continue-on-error: true | |
- name: Get Allure history | |
uses: actions/checkout@v2 | |
if: always() | |
continue-on-error: true | |
with: | |
ref: gh-pages | |
path: gh-pages | |
- name: Allure Report action from marketplace | |
uses: simple-elf/allure-report-action@master | |
if: always() | |
#id: allure-report | |
with: | |
allure_results: build/allure-results | |
#gh_pages: gh-pages | |
#allure_report: allure-report | |
allure_history: allure-history | |
- name: Deploy report to Github Pages | |
if: always() | |
uses: peaceiris/actions-gh-pages@v2 | |
env: | |
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PUBLISH_BRANCH: gh-pages | |
PUBLISH_DIR: allure-history |