-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (24 loc) · 812 Bytes
/
build.yml
File metadata and controls
31 lines (24 loc) · 812 Bytes
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
name: Build
on: [ push, pull_request, workflow_dispatch ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Maven Cache"
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-cache-maven-${{ hashFiles('**/pom.xml') }}
- name: "Setup Java"
uses: actions/setup-java@v1
with:
java-version: 11
- name: "Maven Test"
run: mvn clean test jacoco:report coveralls:report -DdryRun=true
- name: "Send to Coveralls (build java-${{ github.run_number }})"
uses: MikeEdgar/github-action@raw_coverage_file
with:
github-token: ${{ secrets.github_token }}
path-to-file: './target/coveralls.json'
coverage-format: raw