-
Notifications
You must be signed in to change notification settings - Fork 36
50 lines (41 loc) · 1.27 KB
/
maven.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
47
48
49
50
name: CI build
on:
push:
paths-ignore:
- docs/**
pull_request:
paths-ignore:
- docs/**
jobs:
maven-build:
runs-on: [ubuntu-latest]
strategy:
matrix:
java: [1.8]
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Set up Go
uses: actions/setup-go@v2
- name: Cache maven dependencies
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: ./mvnw clean install -pl sling-org-apache-sling-karaf-features,sling-org-apache-sling-karaf-configs,pantheon-bundle,pantheon-karaf-feature,pantheon-karaf-dist
- name: Push to Codecov
uses: codecov/codecov-action@v1
if: ${{ matrix.java }} == '1.8'
with:
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
#file: ./coverage.xml # optional
#files: ./coverage1.xml,./coverage2.xml # optional
flags: java # optional
name: codecov-java # optional
#fail_ci_if_error: true # optional (default = false)