-
-
Notifications
You must be signed in to change notification settings - Fork 31
42 lines (37 loc) · 1010 Bytes
/
quick_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
39
40
41
42
name: Quick Build
on:
workflow_dispatch:
push:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Quick build
runs-on: ubuntu-latest
steps:
# SETUP BUILD ENVIRONMENT
- id: prepare-maven-build
name: Prepare Maven build
uses: sualeh/[email protected]
# BUILD AND TEST
- id: build-test
name: Build all modules and run tests
run: |
# Build
mvn \
--no-transfer-progress \
--batch-mode \
package
- id: code-climate
name: Test and publish code coverage to Code Climate
uses: paambaati/[email protected]
if: github.ref == 'refs/heads/main'
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
JACOCO_SOURCE_PATH: "${{github.workspace}}/src/main/java"
with:
coverageLocations: ${{github.workspace}}/target/site/jacoco/jacoco.xml:jacoco