fix basic template wizard #78
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
# 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: Build and Verify | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build-verify: | |
name: mvn verify | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code 📘 | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
- name: Set up Maven 🍮 | |
uses: stCarolas/[email protected] | |
with: | |
maven-version: 3.9.3 | |
- name: Build and Verify ⚒️🧪 | |
run: xvfb-run -a mvn -B verify --file pom.xml | |
#- name: Publish Test Report 🔍 | |
# uses: mikepenz/action-junit-report@v3 | |
# if: always() # always run even if the previous step fails | |
# with: | |
# report_paths: '**/target/surefire-reports/TEST-*.xml' | |
- name: Publish Test Results | |
uses: EnricoMi/[email protected] | |
if: always() # always run even if the previous step fails | |
with: | |
junit_files: "**/target/surefire-reports/TEST-*.xml" | |
#- name: Archive logs 📦 | |
# uses: actions/upload-artifact@v3 | |
# if: always() # always run even if the previous step fails | |
# with: | |
# name: test-workbench-logs | |
# path: '**/.log' | |