-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (32 loc) · 1.03 KB
/
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
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: Purge maven snapshots
run: mvn -B --no-transfer-progress dependency:purge-local-repository -DmanualInclude="uk.ac.sussex.gdsc:gdsc-ij-parent,uk.ac.sussex.gdsc:gdsc-smlm,uk.ac.sussex.gdsc:gdsc-smlm-ij"
- name: Build
# Note: revapi is skipped only in the modules containing the profile
run: mvn -V -B --no-transfer-progress -P jacoco,revapi-skip checkstyle:check verify jacoco:report
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./gdsc-smlm/target/site/jacoco/jacoco.xml,./gdsc-smlm-ij/target/site/jacoco/jacoco.xml