Skip to content

Pin GitHub Actions to full-length commit SHAs #42

Pin GitHub Actions to full-length commit SHAs

Pin GitHub Actions to full-length commit SHAs #42

Workflow file for this run

name: Maven Build
on:
pull_request:
branches: [main, support/2.x.x]
workflow_dispatch:
jobs:
build-java-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
- name: Set up JDK
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
java-version: 21
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: ./mvnw verify --no-transfer-progress
- name: Upload Unit Test Results
if: ${{ always() }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: UnitTests
path: |
target/surefire-reports/**
- name: Upload a Build Artifact
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: drop
path: |
target/*.jar
pom.xml
mvnw
mvnw.cmd
.mvn/**
scripts/**
build-java-8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
- name: Set up JDK
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
java-version: 8
distribution: 'temurin'
cache: maven
- name: Build with Java 8
run: ./mvnw compile --no-transfer-progress