Skip to content

Commit b9fba48

Browse files
committed
CI: skip tests directory for CodeQL
1 parent 5ea0b1f commit b9fba48

2 files changed

Lines changed: 38 additions & 1 deletion

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: "CodeQL"
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
analyze:
7+
name: Analyze ${{ matrix.language }}
8+
runs-on: ubuntu-latest
9+
permissions:
10+
actions: read
11+
contents: read
12+
security-events: write
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
language: [ 'actions', 'cpp', 'rust' ]
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v6
22+
23+
- name: Initialize CodeQL
24+
uses: github/codeql-action/init@v4
25+
with:
26+
languages: ${{ matrix.language }}
27+
config: |
28+
paths-ignore:
29+
- 'tests/**'
30+
31+
- name: Autobuild
32+
uses: github/codeql-action/autobuild@v4
33+
34+
- name: Perform CodeQL Analysis
35+
uses: github/codeql-action/analyze@v4
36+
with:
37+
category: "/language:${{matrix.language}}"

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build_type: [Debug, Release]
1212

1313
runs-on: ${{ matrix.os }}
14-
name: ${{ matrix.test.name }} (${{ matrix.os }}, ${{ matrix.build_type }})
14+
name: Run Tests (${{ matrix.os }}, ${{ matrix.build_type }})
1515

1616
steps:
1717
- name: Checkout code

0 commit comments

Comments
 (0)