Skip to content

Commit

Permalink
chore: fix indentation issue and codeql build (#168)
Browse files Browse the repository at this point in the history
indentation incorrect in #163
codeQL autobuild replaced with manual JDK install/build
  • Loading branch information
nielm authored Sep 22, 2024
1 parent bd99dc4 commit 1bb206a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand All @@ -50,21 +57,8 @@ jobs:
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release
- name: Build with Maven
run: mvn -B verify --file pom.xml

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,12 @@ public List<String> generateDifferenceStatements(Map<String, Boolean> options)
String optionsDiff = generateOptionsUpdates(Maps.difference(oldOptionsKv, newOptionsKv));

if (optionsDiff != null) {
output.add(
"ALTER CHANGE STREAM "
+ changedChangeStream.rightValue().getName()
+ " SET OPTIONS ("
+ optionsDiff
+ ")");
output.add(
"ALTER CHANGE STREAM "
+ changedChangeStream.rightValue().getName()
+ " SET OPTIONS ("
+ optionsDiff
+ ")");
}
}
}
Expand Down

0 comments on commit 1bb206a

Please sign in to comment.