2022-10-24 12:08:55 -07:00
|
|
|
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
|
|
|
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
|
|
|
|
|
|
|
|
name: Java CI with Maven
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
2022-10-24 12:17:01 -07:00
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
2022-10-24 12:08:55 -07:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-10-24 12:17:01 -07:00
|
|
|
|
2022-10-24 12:10:37 -07:00
|
|
|
runs-on: ubuntu-latest
|
2022-10-24 12:17:01 -07:00
|
|
|
|
2022-10-24 12:10:37 -07:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up JDK 11
|
2022-10-24 12:17:01 -07:00
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
java-version: '11'
|
|
|
|
distribution: 'temurin'
|
|
|
|
cache: maven
|
|
|
|
- name: Build with Maven
|
2022-10-24 12:11:14 -07:00
|
|
|
run: mvn -B package --file pom.xml
|
2022-10-24 12:17:01 -07:00
|
|
|
|