Skip to content

webhook

webhook #22

Workflow file for this run

name: Run tests
env:
ALLURE_VERSION: "2.10.0"
on:
push:
branches:
- master
pull_request:
branches:
- master
repository_dispatch:
types:
- webhook
jobs:
build:
name: Tests on JDK
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [11, 13, 14, 15, 17, 18]
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
java-package: jdk
cache: 'gradle'
- name: Tests
id: functests
timeout-minutes: 15
continue-on-error: true
run: ./gradlew test -Pdriver=chrome
- name: Get Allure history
uses: actions/checkout@v3
id: allure-setup
continue-on-error: true
with:
ref: gh-pages
path: gh-pages
- name: Generate Allure report
uses: simple-elf/allure-report-action@master
with:
allure_results: ./allure-results
allure_report: ./allure-report
allure_history: allure-history
- name: Upload Allure report
uses: actions/upload-artifact@master
with:
name: Allure report
path: ./allure-report
- name: Deploy Allure report to Github Pages
uses: peaceiris/actions-gh-pages@v2
env:
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: allure-history
- name: Check tests are passed
if: ${{ steps.functests.outcome != 'success' }}
run: |
echo Tests result: ${{ steps.functests.outcome }}
exit 1