Skip to content

Commit f2a67a0

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

File tree

2 files changed

+43
-15
lines changed

2 files changed

+43
-15
lines changed

.github/workflows/ci.yaml

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