Skip to content

Update to dl4j 1.0.0-M2.1 (and java 21) #5

Update to dl4j 1.0.0-M2.1 (and java 21)

Update to dl4j 1.0.0-M2.1 (and java 21) #5

Workflow file for this run

# 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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Java CI with Maven
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
- windows-latest
arch:
- x64
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Setup code coverage
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
fi
- name: Build and Test
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
mvn clean test jacoco:report -P backend-CPU -B
else
mvn clean test -P backend-CPU -B
fi
- name: Upload coverage
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
JACOCO_SOURCE_PATH=src/main/java ./cc-test-reporter format-coverage target/site/jacoco/jacoco.xml --input-type jacoco
./cc-test-reporter upload-coverage
fi