ci(linter): setup super linter workflow

This commit is contained in:
Romain Lespinasse
2023-06-11 11:34:00 +02:00
committed by GitHub
parent 094dd7fdb3
commit d1ca8ffbce

27
.github/workflows/linter.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
---
name: Lint Code Base
on: pull_request
jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
statuses: write
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: v4.x
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}