Skip to content

Commit

Permalink
workflow added
Browse files Browse the repository at this point in the history
  • Loading branch information
Achitheus committed Nov 8, 2023
1 parent 36b62de commit ea4a855
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/runAndReport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Allure Report
run-name: ${{ github.actor }} is creating Allure report 🚀

on:
push:
branches-ignore:
- '!main'

jobs:
autotests:
name: Run tests and generate Allure Report
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 9
cache: 'maven'
distribution: 'zulu'

- name: Run Test
run: ./mvnw verify -e
continue-on-error: true

- name: Get Allure history
uses: actions/checkout@v3
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages

- name: Allure Report action from marketplace
uses: simple-elf/[email protected]
if: always()
with:
allure_results: target/allure-results
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

0 comments on commit ea4a855

Please sign in to comment.