Skip to content

complete https://github.com/homebeaver/ungueltig/issues/6 #35

complete https://github.com/homebeaver/ungueltig/issues/6

complete https://github.com/homebeaver/ungueltig/issues/6 #35

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
# 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.
# The name of workflow. GitHub displays the names on repository's actions page.
# If omitted, GitHub sets it to the workflow file path relative to the root of the repository.
# see: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
name: Java CI with Maven
#run-name: Build package + verify by @${{ github.actor }}
# Triggered when code is pushed to any branch in a repository
on:
push:
branches:
- main
# Triggers the workflow on push or pull request events
#on: [push, pull_request]
# Triggers on event release with type created
#on:
# release:
# types: [created]
jobs:
# greeting_job:
# runs-on: ubuntu-latest
# env:
# Greeting: Hello
# steps:
# - name: ${{ vars.MY_VARIABLE_NAME }}
# run: echo "$MY_VARIABLE_NAME" "$First_Name" "${{ github.event_name }}"
# env:
# First_Name: Mona
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17, 21, 25 ]
# steps:
# - uses: actions/checkout@v4
# - name: Set up JDK ${{ matrix.java }}
# uses: actions/setup-java@v4
# with:
# java-version: ${{ matrix.java }}
# distribution: 'adopt'
# cache: maven
# - name: Build with Maven
#
steps:
- uses: actions/checkout@main
- uses: actions/cache@main
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
gpg-private-key: ${{ secrets.SIGN_KEY }} # has to be read directly from secrets
- name: Build with Maven
# Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources,
# process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources,
# process-test-resources, test-compile, process-test-classes, test, prepare-package, package,
# pre-integration-test, integration-test, post-integration-test, verify, install, deploy,
# pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy.
# run: mvn -V --batch-mode package
run: mvn -V --errors --show-version --batch-mode --no-transfer-progress -Ddoclint=all verify
env:
MAVEN_GPG_PASSPHRASE: ${{ secrets.SIGN_KEY_PASS }}
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
# - name: Update dependency graph
# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6