Skip to content

Gh 307: Upgrade workflows #187

Gh 307: Upgrade workflows

Gh 307: Upgrade workflows #187

name: Continuous Integration
on:
pull_request:
push:
branches:
- 'release/**'
- 'hotfix/**'
- develop
jobs:
build:
runs-on: ubuntu-latest
env:
MAVEN_OPTS: -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.httpconnectionManager.ttlSeconds=25
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
!~/.m2/repository/uk
key: koryphe-dependencies
- name: Install
run: mvn -B -q clean install -P quick
- name: Test
run: mvn -B -q verify -P coverage
- name: Check Copyright Headers
if: github.event_name == 'pull_request'
run: mvn -B -q spotless:check
- name: Upload Coverage
uses: codecov/codecov-action@v3