Files
starter-workflows/ci/maven.yml
T

36 lines
1.1 KiB
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
2022-10-10 11:12:22 +00:00
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
2020-03-17 11:17:19 +00:00
2022-10-13 13:24:08 -07:00
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
2020-03-17 11:17:19 +00:00
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:
- uses: actions/checkout@v4
2023-04-28 17:23:42 -04:00
- name: Set up JDK 17
uses: actions/setup-java@v4
2020-03-17 11:17:19 +00:00
with:
2023-04-28 17:23:42 -04:00
java-version: '17'
distribution: 'temurin'
cache: maven
2020-03-17 11:17:19 +00:00
- name: Build with Maven
run: mvn -B package --file pom.xml
2022-10-24 15:22:49 -07:00
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
2022-10-13 13:24:08 -07:00
- name: Update dependency graph
2022-10-24 15:22:18 -07:00
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6