forked from databricks/databricks-jdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 891 Bytes
/
prCheckJDK8.yml
File metadata and controls
36 lines (30 loc) · 891 Bytes
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
name: JDK 8 Build and Test
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [jdk-8]
jobs:
jdk8-test:
name: JDK 8 Unit Tests
runs-on:
group: databricks-protected-runner-group
labels: linux-ubuntu-latest
steps:
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'adopt'
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-jdk8-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-jdk8-m2
- name: Run Unit Tests
run: mvn clean test