Skip to content

DNS search path/resolver + Global JUnit settings #401

DNS search path/resolver + Global JUnit settings

DNS search path/resolver + Global JUnit settings #401

Workflow file for this run

name: Java
on: [push]
jobs:
format-check:
name: Check Code Formatting
continue-on-error: true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Check Format
run: |
mvn --batch-mode -Pverify-format clean compile
shell: 'bash'
codecov:
name: Codecov
continue-on-error: true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
# - name: Install dependencies
# run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- name: Run tests and collect coverage
run: mvn -B test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
build:
runs-on: ubuntu-latest
strategy:
matrix:
# run different builds with the listed java versions
java: [ 8, 11, 17, 21 ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots install