Skip to content

Commit bbcb5e0

Browse files
committed
ci: add analyzer cpp
1 parent b35a4a7 commit bbcb5e0

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,5 @@ dist
132132

133133
packages/ghostscript/ghostpdl
134134
out/
135+
136+
.emsdk/

.github/workflows/ci.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
merge_group:
1212
types: [checks_requested]
1313

14+
env:
15+
NODE_VERSION: 20
16+
EM_VERSION: 3.1.63
17+
1418
jobs:
1519
analyze:
1620
runs-on: ubuntu-latest
@@ -20,14 +24,19 @@ jobs:
2024
contents: read
2125
security-events: write
2226

27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
language: ['javascript-typescript', 'c-cpp']
31+
2332
steps:
2433
- name: Git Checkout
2534
uses: actions/checkout@v4
2635

2736
- name: Initialize CodeQL
2837
uses: github/codeql-action/init@v3
2938
with:
30-
languages: javascript
39+
languages: ${{ matrix.language }}
3140

3241
- name: Autobuild
3342
uses: github/codeql-action/autobuild@v3
@@ -44,19 +53,19 @@ jobs:
4453
with:
4554
submodules: "recursive"
4655

47-
- name: Use EMSDK
56+
- name: Use EMSDK ${{ env.EM_VERSION }}
4857
uses: mymindstorm/setup-emsdk@v14
4958
with:
50-
version: 3.1.63
51-
actions-cache-folder: 'emsdk-cache'
59+
version: ${{ env.EM_VERSION }}
60+
actions-cache-folder: '.emsdk'
5261

5362
- name: Use Corepack
5463
run: corepack enable
5564

56-
- name: Use Node.js 20
65+
- name: Use Node.js ${{ env.NODE_VERSION }}
5766
uses: actions/setup-node@v4
5867
with:
59-
node-version: 20
68+
node-version: ${{ env.NODE_VERSION }}
6069
cache: "yarn"
6170

6271
- name: Install Deps
@@ -67,3 +76,6 @@ jobs:
6776

6877
- name: Run Linter
6978
run: yarn lint
79+
80+
- name: Run Test
81+
run: yarn test

0 commit comments

Comments
 (0)