Skip to content

Commit 861fc05

Browse files
committed
fixing
1 parent 0b9faaa commit 861fc05

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CodeQL
2+
3+
# اجرا روی push و pull request برای main و fix/package
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- fix/package
9+
pull_request:
10+
branches:
11+
- main
12+
- fix/package
13+
14+
jobs:
15+
analyze:
16+
name: Analyze
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
# Checkout repository
21+
- name: Checkout repository
22+
uses: actions/checkout@v3
23+
24+
# Setup Node.js
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: "16"
29+
30+
# Install dependencies
31+
- name: Install dependencies
32+
run: npm install
33+
34+
# Build project
35+
- name: Build project
36+
run: npm run build
37+
38+
# Initialize CodeQL
39+
- name: Initialize CodeQL
40+
uses: github/codeql-action/init@v2
41+
with:
42+
languages: javascript
43+
44+
# Autobuild (CodeQL scan needs this)
45+
- name: CodeQL Autobuild
46+
uses: github/codeql-action/autobuild@v2
47+
48+
# Perform CodeQL analysis
49+
- name: Perform CodeQL Analysis
50+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)