Run CodeQL analysis for different languages in parallel

This commit is contained in:
Kovid Goyal 2025-09-16 07:00:09 +05:30
parent cc19bb4934
commit 1d37ef84ce
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1,8 +1,8 @@
name: "Code scanning - action"
name: "CodeQL"
on:
push:
branches: [master, ]
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
@ -19,7 +19,18 @@ jobs:
contents: read # to fetch code (actions/checkout)
security-events: write # to upload SARIF results (github/codeql-action/analyze)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- language: python
os: ubuntu-latest
- language: c
os: ubuntu-latest
- language: go
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
@ -39,7 +50,7 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: python, c, go
languages: ${{ matrix.language }}
- name: Build kitty
run: python3 .github/workflows/ci.py build