Merge pull request #168 from AxonFramework/dependabot/maven/maven-dep… #346
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Spring Cloud Extension Sample | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
jobs: | |
build: | |
name: Test and Build on JDK ${{ matrix.java-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- java-version: 17 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v4.2.1 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java-version }} | |
cache: "maven" | |
server-id: sonatype | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- name: Cache .m2 | |
uses: actions/cache@v4.0.2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven | |
- name: Build | |
run: | | |
./mvnw -B -U clean verify | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |