ci: upgrade `actions/setup-java` version
@@ -3,6 +3,8 @@ name: Gradle
on:
workflow_dispatch:
push:
+ branches:
+ - develop
pull_request:
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestpaths
@@ -21,16 +23,16 @@ jobs:
matrix:
# https://github.com/actions/virtual-environments#available-environments
os: [ubuntu-18.04, ubuntu-20.04, macos-10.15] # windows-2016, windows-2019
- java: [8, 9, 10]
+ java: [8, 11, 16]
runs-on: ${{ matrix.os }}
steps:
- name: Setup Java
# https://github.com/actions/setup-java/releases/tag/v2.0.0
- uses: actions/setup-java@3bc31aaf88e8fc94dc1e632d48af61be5ca8721c # v2.3.0
+ uses: actions/setup-java@ae26cabe43aaa84f8539613cdb171b33610fa704 # v2.3.0
with:
- distribution: 'adopt'
+ distribution: 'temurin'
check-latest: true
java-version: ${{ matrix.java }}
