forked from SkyCryptWebsite/SkyCrypt-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 930 Bytes
/
Copy pathci.yml
File metadata and controls
39 lines (30 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
analyze:
if: github.event.pull_request.head.repo.fork == false && github.event.pull_request.base.ref == 'prod'
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: javascript-typescript
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
checks:
if: github.event.pull_request.head.repo.fork == true
uses: ./.github/workflows/checks.yml
tests:
if: github.event.pull_request.head.repo.fork == true
uses: ./.github/workflows/test.yml
build:
if: github.event.pull_request.head.repo.fork == true
uses: ./.github/workflows/build.yml