Skip to content

Commit 4004bab

Browse files
committed
51 - travis to github actions
1 parent 4693f4a commit 4004bab

File tree

2 files changed

+40
-15
lines changed

2 files changed

+40
-15
lines changed

.github/workflows/ci.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Java CI
2+
3+
on: [push, pull_request]
4+
branches: [ '1.x' ]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
jdk: [ '8', '11' ]
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Set up JDK ${{ matrix.jdk }}
19+
uses: actions/setup-java@v2
20+
with:
21+
distribution: 'temurin'
22+
java-version: ${{ matrix.jdk }}
23+
24+
- name: Cache Maven packages
25+
uses: actions/cache@v4
26+
with:
27+
path: ~/.m2
28+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
29+
restore-keys: |
30+
${{ runner.os }}-maven-
31+
32+
- name: Set up permissions
33+
run: chmod +x ./ci/install-jdk.sh
34+
35+
- name: Install JDK 11
36+
if: matrix.jdk == '11'
37+
run: ./ci/install-jdk.sh -F 11 -L GPL
38+
39+
- name: Build with Maven
40+
run: mvn test -B -Dmaven.main.skip=true -Dmaven.test.skip=true

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)