Skip to content

Merge pull request #30 from rlaiola/snyk-upgrade-d1f50253f8e25f949a5f… #81

Merge pull request #30 from rlaiola/snyk-upgrade-d1f50253f8e25f949a5f…

Merge pull request #30 from rlaiola/snyk-upgrade-d1f50253f8e25f949a5f… #81

Workflow file for this run

# This workflow may use actions that are not certified by GitHub.
# They may be provided by a third-party and be governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Lint code base
on:
# Run on pushes
push:
# Remove the line to run when pushing to main
branches-ignore: ["main"]
# on PRs
pull_request:
branches: ["main"]
# or on button click
workflow_dispatch:
jobs:
analyze:
runs-on: ubuntu-latest
steps:
# Checkout a repository under $GITHUB_WORKSPACE, so the workflow can access it.
# https://github.com/marketplace/actions/checkout
-
name: Checkout repository
uses: actions/[email protected]
with:
# Repository name with owner. For example, actions/checkout.
# Default: ${{ github.repository }}
repository: '${{ github.repository }}'
# The branch, tag or SHA to checkout. When checking out the repository that
# triggered a workflow, this defaults to the reference or SHA for that event.
# Otherwise, uses the default branch.
ref: 'main'
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
# Run a Super-Linter against code base
# https://github.com/marketplace/actions/super-linter
-
name: Lint repo code
uses: github/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_JAVASCRIPT_ES: true
# Change to 'master' if your main branch differs
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}