• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: CI
2
3on:
4  push:
5    branches:
6    - master
7  pull_request:
8    branches:
9    - master
10
11jobs:
12  build:
13    runs-on: ubuntu-latest
14    strategy:
15      matrix:
16        java: [ 8, 11, 17, 20 ]
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/codecov-action@v3.1.1
34        with:
35          fail_ci_if_error: true
36