Skip to content

travis to github actions #53

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

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from
Open
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.