Skip to content

Commit 6330c52

Browse files
committed
Add JDK 8 test to CI
Signed-off-by: Ryan Nett <[email protected]>
1 parent 98886fe commit 6330c52

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

+26
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,32 @@ jobs:
4040
- name: Run lint checks
4141
run: |
4242
mvn compiler:compile -Pdev,jdk11 -B -U -e
43+
quick-build-jdk8:
44+
if: github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'CI build')
45+
runs-on: ubuntu-latest
46+
container: centos:7
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v1
50+
- name: Install environment
51+
run: |
52+
yum -y update
53+
yum -y install centos-release-scl-rh epel-release
54+
yum -y install java-1.8.0-openjdk-devel devtoolset-7
55+
echo Downloading Maven
56+
curl -L https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz -o $HOME/apache-maven-3.6.3-bin.tar.gz
57+
tar xzf $HOME/apache-maven-3.6.3-bin.tar.gz -C /opt/
58+
ln -sf /opt/apache-maven-3.6.3/bin/mvn /usr/bin/mvn
59+
- name: Build project
60+
run: |
61+
source scl_source enable devtoolset-7 || true
62+
export JAVA_HOME=$(dirname $(dirname $(readlink $(readlink $(which javac)))))
63+
echo $JAVA_HOME
64+
mvn -version
65+
mvn clean install -Pdev -B -U -e -Dlint.skip=true
66+
- name: Run lint checks
67+
run: |
68+
mvn compiler:compile -Pdev -B -U -e
4369
check-format:
4470
if: github.event_name == 'pull_request'
4571
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)