Skip to content

Use explicit close rather than try-with-resources for AutoClosable it… #175

Use explicit close rather than try-with-resources for AutoClosable it…

Use explicit close rather than try-with-resources for AutoClosable it… #175

Workflow file for this run

name: JDK EA
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '12 8 * * 1,3,5'
jobs:
build:
runs-on: ${{ matrix.os }}
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
java_version: [EA, GA] ## valhalla (fails javadoc)
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: ${{ matrix.java_version }}
- name: Maven cache
uses: actions/cache@v4
env:
cache-name: maven-cache
with:
path:
~/.m2
key: build-${{ env.cache-name }}
- name: Build with Maven
run: mvn clean test