ci: add code scanning (#8169)
This commit is contained in:
26
.github/workflows/ci.yml
vendored
26
.github/workflows/ci.yml
vendored
@@ -1,14 +1,34 @@
|
|||||||
name: ci
|
name: ci
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ release, alpha, beta, next-major ]
|
branches: [ release, alpha, beta ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches: [ release, alpha, beta ]
|
||||||
- '**'
|
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: 16.14.2
|
NODE_VERSION: 16.14.2
|
||||||
PARSE_SERVER_TEST_TIMEOUT: 20000
|
PARSE_SERVER_TEST_TIMEOUT: 20000
|
||||||
jobs:
|
jobs:
|
||||||
|
check-code-analysis:
|
||||||
|
name: Code Analysis
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
actions: read
|
||||||
|
contents: read
|
||||||
|
security-events: write
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
language: [ 'javascript' ]
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Initialize CodeQL
|
||||||
|
uses: github/codeql-action/init@v2
|
||||||
|
with:
|
||||||
|
languages: ${{ matrix.language }}
|
||||||
|
source-root: src
|
||||||
|
- name: Perform CodeQL Analysis
|
||||||
|
uses: github/codeql-action/analyze@v2
|
||||||
check-ci:
|
check-ci:
|
||||||
name: Node Engine Check
|
name: Node Engine Check
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
|
|||||||
Reference in New Issue
Block a user