Better avoidance of a force-dark function #312
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This action runs static code analysis checks on the huroutes source code | |
name: huroutes static tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: # PRs to any branch | |
workflow_dispatch: # Manual execution | |
schedule: | |
- cron: '35 10 * * 3' # Every once in a while (for CodeQL security checks mainly) | |
jobs: | |
test-db: | |
# Validates the huroutes route database | |
if: ${{ github.event_name != 'schedule' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Ensure the jsonschema lib | |
run: sudo pip install jsonschema | |
- name: Run the check | |
run: python ".github/scripts/validate-database.py" data.json data.schema.json | |
codeql: | |
# Runs CodeQL checks on javascript source code | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'javascript' ] | |
steps: | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v2 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |