Skip to content
Open
Show file tree
Hide file tree
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
43 changes: 43 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Java CI

on:
push:
branches: [ '1.x' ]
pull_request:
branches: [ '1.x' ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
jdk: [ '8', '11' ]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: ${{ matrix.jdk }}

- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Set up permissions
run: chmod +x ./ci/install-jdk.sh

- name: Install JDK 11
if: matrix.jdk == '11'
run: ./ci/install-jdk.sh -F 11 -L GPL

- name: Build with Maven
run: mvn test -B -Dmaven.main.skip=true -Dmaven.test.skip=true
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.