Skip to content

Upgrade to web-vitals v4 (#856) #814

Upgrade to web-vitals v4 (#856)

Upgrade to web-vitals v4 (#856) #814

# Runs the CodeQL static code analysis
name: "Static Code Analysis"
on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- '**.js'
- '**.py'
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '30 1 * * 0'
workflow_dispatch:
jobs:
CodeQL-Build:
# CodeQL runs on ubuntu-20.04, windows-latest, and macos-latest
runs-on: ubuntu-20.04
strategy:
matrix:
language: ['javascript', 'python']
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.8
if: ${{ matrix.language == 'python' }}
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install dependencies
if: ${{ matrix.language == 'python' }}
run: |
pip install -r requirements.txt;
# Set the `CODEQL-PYTHON` environment variable to the Python executable
# that includes the dependencies
echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
config-file: ./.github/codeql/codeql-config.yml
queries: +security-and-quality
setup-python-dependencies: false
languages: '${{ matrix.language }}'
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3