Skip to content

Commit

Permalink
Setup java install for codeql (#3297)
Browse files Browse the repository at this point in the history
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [ ] The code builds clean without any errors or warnings
- [ ] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [ ] All unit tests pass, and I have added new tests where possible
- [ ] I didn't break anyone 😄
  • Loading branch information
johnoliver authored Oct 25, 2023
1 parent 28bfb26 commit 70bfcba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ jobs:
if: ${{ matrix.language != 'java' }}
uses: github/codeql-action/autobuild@v2

- name: Setup JDK
uses: actions/setup-java@v3
if: ${{ matrix.language == 'java' }}
with:
java-version: 17
distribution: microsoft
cache: maven

- name: Build Java
if: ${{ matrix.language == 'java' }}
run: ./mvnw -B -DskipTests -Pcompile-jdk17 clean install --file pom.xml
Expand Down

0 comments on commit 70bfcba

Please sign in to comment.