Skip to content

Commit 2fcd0c6

Browse files
authored
Setup CI based on GH Actions (#637)
1 parent aef6e9e commit 2fcd0c6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
java: [ 8, 11, 17, 19 ]
17+
name: Java ${{ matrix.java }}
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- name: Setup JDK
22+
uses: actions/setup-java@v3
23+
with:
24+
distribution: 'temurin'
25+
java-version: ${{ matrix.java }}
26+
cache: 'maven'
27+
28+
- name: Build with Maven
29+
run: mvn clean verify
30+
31+
- name: Upload coverage to Codecov
32+
if: matrix.java == '8'
33+
uses: codecov/[email protected]
34+
with:
35+
fail_ci_if_error: true

0 commit comments

Comments
 (0)