Skip to content

LINT

LINT #519

Workflow file for this run

# This workflow executes several linters on changed files based on languages used in your code base whenever
# you push a code or open a pull request.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/github/super-linter
name: Lint Code Base
permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
run-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18
- name: Cache node_modules
id: cache-nodes-modules
uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Install project dependencies
run: npm ci
- name: Run lint
run: npm run lint
- name: Check git leak
uses: super-linter/[email protected]
env:
VALIDATE_ALL_CODEBASE: true
VALIDATE_GITLEAKS: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}