#21 run java and csharp snippets #7
Workflow file for this run
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: java windows snippets | |
on: [pull_request, workflow_dispatch] | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
java-windows-snippets: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
java-version: ["17", "21"] | |
java-distribution: ["temurin"] | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: ${{ matrix.java-distribution }} | |
- name: install Senzing SDK | |
uses: senzing-factory/github-action-install-senzing-sdk@v2 | |
with: | |
senzingsdk-repository-path: ${{ secrets.SENZING_WIN_BETA_REPOSITORY }} | |
- name: build with Maven | |
run: | | |
cd "${$Env:GITHUB_WORKSPACE}"\java | |
mvn clean install | |
- name: run java snippets | |
run: | | |
cd "${$Env:GITHUB_WORKSPACE}"\java | |
java -jar target/sz-sdk-snippets.jar all |