Skip to content

Commit

Permalink
Move codeql to a separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
atarassov-ttd committed Nov 24, 2023
1 parent b9f6c40 commit 9d4b325
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,24 @@ on:
default: ""

jobs:
codeql:
runs-on: ubuntu-latest
steps:
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: c-cpp

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: c-cpp

build:
needs: [codeql]
runs-on: ubuntu-latest
container: amazonlinux:2
strategy:
Expand All @@ -33,16 +50,3 @@ jobs:
cd build
make package
make test
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: c-cpp

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"

0 comments on commit 9d4b325

Please sign in to comment.