-
Notifications
You must be signed in to change notification settings - Fork 14
46 lines (37 loc) · 1.04 KB
/
ci.yml
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
36
37
38
39
40
41
42
43
44
45
46
name: CI with Gradle
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
distribution: [ temurin ]
java: [ 21 ,23 ]
name: JDK ${{ matrix.java }}
steps:
- uses: actions/[email protected]
- name: Set up JDK ${{ matrix.java }}
uses: actions/[email protected]
with:
java-version: ${{ matrix.java }}
distribution: ${{ matrix.distribution }}
- name: Setup Gradle
uses: gradle/actions/[email protected]
- name: Gradle Run Build
run: ./gradlew build
- name: Upload coverage reports to Codecov
if: ${{ matrix.java }} == '21'
uses: codecov/[email protected]
env:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage reports to Codecov
if: ${{ matrix.java }} == '21'
uses: codecov/[email protected]
env:
token: ${{ secrets.CODECOV_TOKEN }}