mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-24 03:06:48 +01:00
59b97f26c0
* split js and go codeql, split test and build, enable matrix for test * checkout before go setup * enable build for PRs as well * update filter
43 lines
850 B
YAML
43 lines
850 B
YAML
name: "CodeQL - JS"
|
|
|
|
on:
|
|
push:
|
|
branches: [master, cluster]
|
|
paths:
|
|
- "**.js"
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches: [master, cluster]
|
|
paths:
|
|
- "**.js"
|
|
schedule:
|
|
- cron: "30 18 * * 2"
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
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 }}
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v2
|
|
with:
|
|
category: "javascript"
|