ci: add linter workflow

This commit is contained in:
Mikhail Zolotukhin 2021-08-28 13:57:54 +03:00
parent cecb6cc691
commit 0f8976c55e

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

@ -0,0 +1,27 @@
---
name: Lint Code Base
on:
push:
pull_request:
branches: [master, main]
jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
# Run Linter against code base #
- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}