darverdevs-Uranium/.github/workflows/maven.yml

25 lines
671 B
YAML
Raw Normal View History

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" ]
pull_request:
branches: [ "main" ]
jobs:
build:
2022-10-24 12:10:37 -07:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
2022-10-24 12:11:14 -07:00
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
2022-10-24 12:10:48 -07:00
- name: Build with Maven
2022-10-24 12:11:14 -07:00
run: mvn -B package --file pom.xml
2022-10-24 12:08:55 -07:00