Skip to content

Update dependencies #159

Update dependencies

Update dependencies #159

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# See: https://github.com/actions/setup-java
- name: Set up Adopt JDK 17
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
# See: https://github.com/actions/cache/blob/master/examples.md#java---maven
- name: Maven cache and restore deps
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B package --file pom.xml