Skip to content

Update actions/checkout action to v4 #194

Update actions/checkout action to v4

Update actions/checkout action to v4 #194

Workflow file for this run

name: Java CI
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.1
- name: Set up JDK 16
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 16
cache: 'maven'
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn package --file pom.xml