Fixup deploy.yml #22
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
on: | |
pull_request: | |
push: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
jre: [17] | |
os: [ubuntu-latest, windows-latest] | |
include: | |
- jre: 11 | |
os: ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install JDK ${{ matrix.jre }} | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: ${{ matrix.jre }} | |
- name: gradle caching | |
uses: gradle/gradle-build-action@v2 | |
with: | |
gradle-home-cache-cleanup: true | |
- name: git fetch origin main | |
run: git fetch origin main | |
- name: gradlew build | |
run: | | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
sudo apt-get install xvfb | |
Xvfb :99 & | |
export DISPLAY=:99 | |
fi | |
./gradlew build | |
shell: bash | |
- name: junit result | |
uses: mikepenz/action-junit-report@v3 | |
if: always() # always run even if the previous step fails | |
with: | |
check_name: JUnit ${{ matrix.jre }} ${{ matrix.os }} | |
report_paths: '*/build/test-results/*/TEST-*.xml' |