-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 904 Bytes
/
build.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
name: Java CI
on:
push:
branches:
- master
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8 ]
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build
run: .github/build.sh
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
- name: Build coverage
run: mvn -B --no-transfer-progress -P jacoco,gdsc-test-doc jacoco:report-aggregate
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./gdsc-test-doc/target/site/jacoco-aggregate/jacoco.xml