Update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.5.2 #398
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: Java CI with Maven | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- '**.md' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: 'adopt' | |
- name: Start Notebook manager | |
run: docker-compose -f src/test/resources/docker/docker-compose.yml up -d | |
- name: Run tests | |
run: mvn clean test -B -Plocal,allure-reports -DhidePollingProgress | |
- name: Stop Notebook manager | |
if: always() | |
run: docker-compose -f src/test/resources/docker/docker-compose.yml down | |
- name: Get Allure history | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
if: always() | |
continue-on-error: true | |
with: | |
ref: gh-pages | |
path: gh-pages | |
- name: Generate Allure reports | |
uses: simple-elf/allure-report-action@master | |
if: always() | |
#id: allure-report | |
with: | |
allure_results: target/allure-results | |
#gh_pages: gh-pages | |
#allure_report: allure-report | |
allure_history: allure-history | |
keep_reports: 3 | |
- name: Deploy Allure reports 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 |