Skip to content

Bump actions/cache from 2.1.5 to 3.3.1 #413

Bump actions/cache from 2.1.5 to 3.3.1

Bump actions/cache from 2.1.5 to 3.3.1 #413

name: Maven Deploy
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- uses: actions/setup-python@v2
- name: Pre commit
uses: pre-commit/[email protected]
- name: Cache
uses: actions/[email protected]
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
- name: Deploy
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: mvn deploy -ntp -fae --file pom.xml --settings settings.xml
- name: Publish Test Reports
uses: codecov/[email protected]
- name: Run codacy-coverage-reporter
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: test-coverage-aggregator/target/site/jacoco-aggregate/jacoco.xml