Skip to content

chore(deps): update actions/setup-java action to v4.5.0 #896

chore(deps): update actions/setup-java action to v4.5.0

chore(deps): update actions/setup-java action to v4.5.0 #896

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
java-version: [8, 11, 16, 17]
compiler-version: [1.1, 1.2, 1.3, 1.4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
os: [ ubuntu-latest , macos-latest , windows-latest ]
exclude:
- os: macos-latest
java-version: 8
- os: macos-latest
java-version: 16
steps:
- name: Checkout
uses: actions/checkout@v4.2.1
if: ${{ matrix.compiler-version <= matrix.java-version && (matrix.java-version < 14 || matrix.compiler-version >= 7) && (matrix.java-version < 11 || matrix.compiler-version >= 6) }}
- name: Setup JDK${{ matrix.java-version }}
uses: actions/setup-java@v4.5.0
if: ${{ matrix.compiler-version <= matrix.java-version && (matrix.java-version < 14 || matrix.compiler-version >= 7) && (matrix.java-version < 11 || matrix.compiler-version >= 6) }}
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
- name: Install example projects
run: ./.github/install_examples.sh
if: ${{ matrix.compiler-version <= matrix.java-version && (matrix.java-version < 14 || matrix.compiler-version >= 7) && (matrix.java-version < 11 || matrix.compiler-version >= 6) }}
shell: bash
env:
SRC_VERSION: ${{ matrix.compiler-version }}
- name: Build and run tests
run: mvn --batch-mode clean test
if: ${{ matrix.compiler-version <= matrix.java-version && (matrix.java-version < 14 || matrix.compiler-version >= 7) && (matrix.java-version < 11 || matrix.compiler-version >= 6) }}
env:
SRC_VERSION: ${{ matrix.compiler-version }}
- name: Codecov
uses: codecov/codecov-action@v4.6.0
if: ${{ matrix.compiler-version == 8 && matrix.java-version == 8 && matrix.os == 'ubuntu-latest' }}