Skip to content

attempt 3 to fix windows tests #6

attempt 3 to fix windows tests

attempt 3 to fix windows tests #6

Workflow file for this run

name: Continuous Integration
on:
repository_dispatch:
types: run-commit-tests
push:
branches:
- master
- feature/**
- release/**
pull_request:
types: [opened, synchronize]
branches:
- master
- feature/**
- release/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dorg.gradle.java.installations.auto-detect=false -Dorg.gradle.warning.mode=fail'
permissions:
contents: read
jobs:
java-build:
name: Java ${{ matrix.java }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
java: [ '8', '11', '17', '21' ]
os: ['ubuntu-latest', 'windows-latest']
# os: ['ubuntu-latest']
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION (Linux)
if: runner.os == 'Linux'
run: |
java -Xinternalversion
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
echo "BUILD_JAVA_VERSION=${{ matrix.java }}" >> $GITHUB_ENV
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION (Windows)
if: runner.os == 'Windows'
run: |
java -Xinternalversion
echo "BUILD_JAVA_HOME=$env:JAVA_HOME" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append
echo "BUILD_JAVA_VERSION=${{ matrix.java }}" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append
- name: Setup java 8 to run the Gradle script
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 8
cache: maven
- name: Build with Maven
run: mvn clean install