Gh 307: Upgrade workflows #187
Workflow file for this run
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: 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 |