Merge pull request #127 from sualeh/dependabot/maven/org.apache.maven… #371
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |