Skip to content

Commit a501e3b

Browse files
authored
Support codeql analysis (#34)
* Support codeql analysis * Update test.yml * Update test.yml
1 parent 8df5e5a commit a501e3b

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/codeql.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
codeql:
12+
uses: cpp-linter/.github/.github/workflows/codeql.yml@add-codeql-workflow
13+
with:
14+
language: python

.github/workflows/test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11-
pre-commit:
12-
uses: cpp-linter/.github/.github/workflows/pre-commit.yml@main
13-
with:
14-
commands: pip install pytest -e .
1511
test:
1612
runs-on: ubuntu-latest
1713
steps:
@@ -40,3 +36,8 @@ jobs:
4036
verbose: true # optional (default = false)
4137
- name: Test cpp-linter-hooks
4238
run: sh testing/run.sh
39+
pre-commit:
40+
needs: [test]
41+
uses: cpp-linter/.github/.github/workflows/pre-commit.yml@main
42+
with:
43+
commands: pip install pytest -e .

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy