Bugfix Snapshot Release + Bump deprecated github action versions #266
Workflow file for this run
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 | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-13, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Hadoop winutils (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
mkdir C:\winutils | |
cd C:\winutils | |
git init | |
git remote add origin https://github.com/cdarlint/winutils | |
git config core.sparseCheckout true | |
echo "hadoop-3.2.2" > .git\info\sparse-checkout | |
git pull origin master | |
echo "HADOOP_HOME=C:\winutils\hadoop-3.2.2" >> $env:GITHUB_ENV | |
echo "PATH=$env:PATH;$env:HADOOP_HOME\bin" >> $env:GITHUB_ENV | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v4.2.1 | |
with: | |
java-version: 8 | |
distribution: zulu | |
- name: Build with Maven | |
run: | | |
mvn clean install -DskipTests --no-transfer-progress -DtrimStackTrace=false | |
- name: Test with Maven | |
if: matrix.os != 'windows-latest' | |
run: | | |
mvn verify --no-transfer-progress -DtrimStackTrace=false | |
- name: Test with Maven (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
mvn verify -pl !:gradoop-hbase,!:gradoop-accumulo --no-transfer-progress -DtrimStackTrace=false |