Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
# - language: c-cpp
# build-mode: autobuild
- language: go
build-mode: autobuild
build-mode: manual
- language: java-kotlin
build-mode: autobuild
- language: javascript-typescript
Expand All @@ -76,6 +76,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v6

- name: Set up Go
if: matrix.language == 'go'
uses: actions/setup-go@v6
with:
go-version-file: 'sdks/go.mod'

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
# or others). This is typically only required for manual builds.
Expand Down Expand Up @@ -105,12 +111,22 @@ jobs:
if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
if [ "${{ matrix.language }}" = "go" ]; then
echo "Building sdks module..."
(cd sdks && go build ./...)

echo "Building playground/backend module..."
(cd playground/backend && go build ./...)

echo "Building learning/katas/go module..."
(cd learning/katas/go && go mod tidy && go build ./...)

echo "Building learning/tour-of-beam/backend module..."
(cd learning/tour-of-beam/backend && go build ./cmd/... ./internal/... ./playground_api/...)
else
echo "No manual build steps defined for ${{ matrix.language }}"
exit 1
fi

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
Expand Down
Loading