Files
starter-workflows/ci/maven.yml
T

27 lines
688 B
YAML
Raw Normal View History

2021-08-24 18:25:52 +03:00
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2020-03-17 11:17:19 +00:00
# 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:
2020-07-13 12:12:41 -07:00
branches: [ $default-branch ]
2020-03-17 11:17:19 +00:00
pull_request:
2020-07-13 12:12:41 -07:00
branches: [ $default-branch ]
2020-03-17 11:17:19 +00:00
jobs:
build:
runs-on: ubuntu-latest
steps:
2022-03-28 13:10:48 -04:00
- uses: actions/checkout@v3
- name: Set up JDK 11
2022-03-28 13:10:48 -04:00
uses: actions/setup-java@v3
2020-03-17 11:17:19 +00:00
with:
java-version: '11'
distribution: 'temurin'
cache: maven
2020-03-17 11:17:19 +00:00
- name: Build with Maven
run: mvn -B package --file pom.xml