Skip to content

Update dependency io.github.git-commit-id:git-commit-id-maven-plugin … #1246

Update dependency io.github.git-commit-id:git-commit-id-maven-plugin …

Update dependency io.github.git-commit-id:git-commit-id-maven-plugin … #1246

Workflow file for this run

name: Chaos Monkey Build
on: [push, pull_request]
jobs:
build:
name: "OS: ${{ matrix.os }}, Java: ${{ matrix.java }}"
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java: [17]
include:
# Build additional java versions
- java: 19
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # need git history for spotless license header
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run Spotless
run: ./mvnw spotless:check
- name: Run Maven verify
run: ./mvnw verify -B
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
deploy:
needs: build
name: "Publish snapshot artifacts"
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run Maven Deploy
env:
SONATYPE_USERTOKEN: ${{ secrets.SONATYPE_USERTOKEN }}
SONATYPE_USERTOKENPASSWORD: ${{ secrets.SONATYPE_USERTOKENPASSWORD }}
run: ./mvnw deploy -DskipTests --settings .settings.xml