Browse Source

CI: add super-linter for pull requests

This commit adds a linter which checks most common filetypes, including
Shell and Lua. Ideally this improves the quality of especially `init`
scripts written in Shell.

Signed-off-by: Paul Spooren <mail@aparcar.org>
lilik-openwrt-22.03
Paul Spooren 4 years ago
parent
commit
2b5de22202
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      .github/workflows/linter.yml

+ 22
- 0
.github/workflows/linter.yml View File

@ -0,0 +1,22 @@
name: Lint Pull Request
# Documentation:
# https://github.com/github/super-linter
on:
pull_request:
branches: [master]
jobs:
build:
name: Lint Code Base
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Lint Code Base
uses: github/super-linter@v3
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Loading…
Cancel
Save