Skip to content

Commit d872de0

Browse files
chore: fix codeql build for java (#253)
Signed-off-by: campionfellin <campionfellin@gmail.com>
1 parent 2bec62a commit d872de0

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,14 @@ jobs:
3232
# with:
3333
# languages: go, javascript, csharp, python, cpp, java
3434

35-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
36-
# If this step fails, then you should remove it and run the build manually (see below)
37-
- name: Autobuild
38-
uses: github/codeql-action/autobuild@v1
39-
40-
# ℹ️ Command-line programs to run using the OS shell.
41-
# 📚 https://git.io/JvXDl
42-
43-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
44-
# and modify them (or add more) to build your code if your project
45-
# uses a compiled language
46-
47-
#- run: |
48-
# make bootstrap
49-
# make release
35+
- name: Build java code
36+
shell: bash
37+
run: |
38+
cd packages/cdk8s-cli/templates/java-app
39+
sed -i 's/{{ cdk8s_version }}/0.25.0/g' pom.xml
40+
sed -i 's/{{ constructs_version }}/2.0.2/g' pom.xml
41+
mvn install
42+
mvn compile
5043
5144
- name: Perform CodeQL Analysis
5245
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)