Merge pull request #699 from serverlessworkflow/dependabot/maven/main… #1532
This file contains hidden or 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: sdk-java Verify | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# 1. Checkout this repo | |
- name: Checkout sdk-java | |
uses: actions/checkout@v4 | |
# 2. Set up JDK 17 for both builds | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: 'maven' | |
# 3. Verify the main sdk-java project, excluding the two agentic modules | |
- name: Verify with Maven | |
run: | | |
mvn -B -f pom.xml clean install verify -am | |
# 4. Verify examples | |
- name: Verify Examples with Maven | |
run: | | |
mvn -B -f examples/pom.xml clean install verify |