Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update github action to use setup-java v2.0.0 #3874

Merged
merged 6 commits into from
Apr 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,33 @@ on:
schedule:
- cron: "0 0 * * *"

env:
JAVA_DISTRIBUTION: adopt

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [1.8, 11, 15]
java: [8, 11, 15]
os: [ubuntu-latest, windows-latest]
exclude:
- os: windows-latest
java: 11
- os: windows-latest
java: 15


env:
MAVEN_OPTS: -Djava.src.version=${{ matrix.java }} -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false

name: Tests with Java ${{ matrix.java }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
- uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
- uses: actions/setup-java@8764a52df183aa0ccea74521dfd9d506ffc7a19a # v2.0.0
with:
java-version: ${{ matrix.java }}
distribution: ${{ env.JAVA_DISTRIBUTION }}

- name: Get date for cache # see https://github.com/actions/cache README
id: get-date
Expand Down Expand Up @@ -67,9 +73,10 @@ jobs:
name: Test with coverage
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
- uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
- uses: actions/setup-java@8764a52df183aa0ccea74521dfd9d506ffc7a19a # v2.0.0
with:
java-version: 15
distribution: ${{ env.JAVA_DISTRIBUTION }}

- name: Get date for cache # see https://github.com/actions/cache README
id: get-date
Expand Down Expand Up @@ -100,9 +107,10 @@ jobs:
name: Extra checks
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
- uses: actions/setup-java@d202f5dbf7256730fb690ec59f6381650114feb2 # v1.4.3
- uses: actions/setup-java@8764a52df183aa0ccea74521dfd9d506ffc7a19a # v2.0.0
with:
java-version: 15
distribution: ${{ env.JAVA_DISTRIBUTION }}
- uses: actions/setup-python@41b7212b1668f5de9d65e9c82aa777e6bbedb3a8 # v2.1.4
with:
python-version: 3.6
Expand Down