-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (38 loc) · 1.12 KB
/
verify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: 'Verify'
on:
push:
branches-ignore:
- gh-pages
pull_request:
branches:
- '*'
jobs:
build-and-verify:
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
java: ['8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20']
steps:
- uses: actions/checkout@v4
- name: 'Set up JDK ${{ matrix.java }}'
uses: actions/setup-java@v4
if: matrix.java != 8
with:
distribution: ${{ matrix.java < 17 && 'adopt' || 'temurin' }}
java-version: ${{ matrix.java }}
- name: 'Prepare JDK${{ matrix.java }} env var'
shell: bash
run: echo "JDK${{ matrix.java }}=$JAVA_HOME" >> $GITHUB_ENV
- name: 'Set up JDK 8'
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
- name: Prepare JDK8 env var
shell: bash
run: echo "JDK8=$JAVA_HOME" >> $GITHUB_ENV
- name: 'Set up Gradle'
uses: gradle/actions/setup-gradle@v4
- name: 'Build Polyfill'
run: "./gradlew testsOn${{ matrix.java }}"