Skip to content

Commit

Permalink
Align code for latest Parent POM
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-sh committed Jun 24, 2024
1 parent 600a1f7 commit 0e44067
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/push-and-pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,36 @@
name: Build on Push and Pull Request
on:
- push
- pull_request
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Supported versions as of https://en.wikipedia.org/wiki/Java_version_history
# Supported LTS versions as of https://en.wikipedia.org/wiki/Java_version_history
java-version:
- 8
- 11
- 16
- 17
- 21

name: Build with JDK ${{ matrix.java-version }}
steps:
- name: Cache Dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
key: maven-dependencies
path: ~/.m2/repository
- name: Check out
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: adopt
distribution: temurin
java-version: ${{ matrix.java-version }}
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
Expand All @@ -38,6 +41,7 @@ jobs:
set +o errexit +o pipefail
- id: version
name: Evaluate Version
shell: bash {0}
run: |
project_version=`mvn help:evaluate --quiet --define expression=project.version --define forceStdout`
echo "Version: ${project_version}"
Expand Down Expand Up @@ -95,7 +99,7 @@ jobs:
fi
- name: Deploy Site
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && matrix.java-version == 8 && steps.version.outputs.is-snapshot == 'true' }}
uses: peaceiris/actions-gh-pages@v3.8.0
uses: peaceiris/actions-gh-pages@v4.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/site
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@
</dependency>

<dependency>
<groupId>com.googlecode.jmockit</groupId>
<groupId>org.jmockit</groupId>
<artifactId>jmockit</artifactId>
<version>1.7</version>
<version>1.29</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down

0 comments on commit 0e44067

Please sign in to comment.