Skip to content

Merge pull request #92 from ongres/dependabot/github_actions/all-gith… #195

Merge pull request #92 from ongres/dependabot/github_actions/all-gith…

Merge pull request #92 from ongres/dependabot/github_actions/all-gith… #195

Workflow file for this run

# 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"]
permissions: # added using https://github.com/step-security/secure-repo
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Set up JDK 21
uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0
with:
java-version: '21'
distribution: 'zulu'
cache: maven
- name: Build with Maven
run: ./mvnw -B verify -P checks,run-its
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
dependency-submission:
runs-on: ubuntu-latest
permissions:
contents: write #required for POST snapshot API https://docs.github.com/en/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@b275d12641ac2d2108b2cbb7598b154ad2f2cee8