Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Cleanup compiler warnings. #41

Cleanup compiler warnings.

Cleanup compiler warnings. #41

Workflow file for this run

name: "CI"
on:
push:
branches:
- '*'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# test against may JDKs. Only 8, 17 and 21 are officially supported, fixes for others are on a best effort basis.
java: [ 8, 9, 11, 17, 21]
name: CI with Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup jdk
uses: actions/setup-java@v3
with:
# Install both the version we'll test with AND 8, which goes later so that it's the default for gradle to run with.
java-version: |
${{ matrix.java }}
8
distribution: 'zulu'
- uses: actions/cache@v3
id: gradle-cache
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/gradle/dependency-locks/*.lockfile') }}
restore-keys: |
- ${{ runner.os }}-gradle-
- uses: actions/cache@v3
id: gradle-wrapper-cache
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }}
restore-keys: |
- ${{ runner.os }}-gradlewrapper-
- name: Build with Gradle
run: ./gradlew --info --stacktrace -DtestJdk=${{matrix.java}} build
env:
CI_NAME: github_actions
CI_BUILD_NUMBER: ${{ github.sha }}
CI_BUILD_URL: 'https://github.com/${{ github.repository }}'
CI_BRANCH: ${{ github.ref }}
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}