From 72a995228fa2bf9b05b459d623c936d2ec9e28ed Mon Sep 17 00:00:00 2001 From: jm20122012 Date: Mon, 24 Jun 2024 18:17:34 -0600 Subject: [PATCH] Updated codeql workflow to use correct context for javascript app --- .github/workflows/codeql-analysis.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index bd64cd8..efc2246 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'javascript' ] + language: [ 'javascript', 'go' ] steps: - name: Checkout repository @@ -32,11 +32,20 @@ jobs: with: node-version: '16' - - name: Install dependencies - run: npm ci + - name: Install dependencies and build React app + working-directory: ./ui + run: | + npm ci + npm run build - - name: Build React app - run: npm run build + - name: Setup Go + uses: actions/setup-go@v2 + with: + go-version: '1.22.4' + + - name: Build Go code + working-directory: ./controller + run: go build ./... - name: Initialize CodeQL uses: github/codeql-action/init@v2