summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: 8b7967568405ff2a34cd0cd2c06a5e6f2024607c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI

on:
  push:
    branches:
    - master
  pull_request:
    branches:
    - master

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        java: [ 8, 11, 17, 20 ]
    name: Java ${{ matrix.java }}
    steps:
      - uses: actions/checkout@v3

      - name: Setup JDK
        uses: actions/setup-java@v3
        with:
          distribution: 'temurin'
          java-version: ${{ matrix.java }}
          cache: 'maven'

      - name: Build with Maven
        run: mvn clean verify

      - name: Upload coverage to Codecov
        if: matrix.java == '8'
        uses: codecov/codecov-action@v3.1.1
        with:
          fail_ci_if_error: true