-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.36 KB
/
development.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
51
52
53
name: Development branches
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: Build and run tests on JDK 11
steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v2
- name: Expose branch name
run: echo ${{ github.ref }}
# Setup the cache
- name: Cache .m2
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven
# Setup JDK and Maven
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
server-id: ossrh
server-username: OSS_CENTRAL_USERNAME # env variable for Maven Central
server-password: OSS_CENTRAL_PASSWORD # env variable for Maven Central
# Prepare
- name: Prepare Maven Wrapper
run: chmod +x ./mvnw
# Build
- name: Build with Maven
run: ./mvnw clean verify -U -B -T4
# itest
- name: Run itest
run: ./mvnw integration-test failsafe:verify -Pitest -U -B -T4
# - name: Upload coverage to Codecov
# if: github.event_name == 'push' && github.actor != 'dependabot[bot]'
# uses: codecov/[email protected]
# with:
# token: ${{secrets.CODECOV_TOKEN}}