From 2aba10a82644f0febf69998aefa4cd0ae2498192 Mon Sep 17 00:00:00 2001 From: rlespinasse Date: Sun, 1 Nov 2020 21:15:10 +0100 Subject: [PATCH] ci: add linter workflow --- .github/workflows/linter.yml | 22 ++++++++++++++++++++++ README.md | 4 +++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..99c7f76 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,22 @@ +name: Lint + +on: [pull_request] + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Lint Code Base + uses: github/super-linter@v3 + env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: v3.x + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + FILTER_REGEX_INCLUDE: .*src/.* diff --git a/README.md b/README.md index 0a21e1f..48c01a6 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ # GitHub Slug action [![Actions Status][1]][2] +![GitHub Super-Linter][13] [![Public workflows that use this action.][8]][9] -[![Licence][11]][10] +[![Licence][11]][12] This GitHub Action will expose the slug value of all [GitHub environment variables][10] inside your GitHub workflow. @@ -148,3 +149,4 @@ Please, use the current branch `v3.x` or a version tag (see [releases pages][6]) [10]: https://docs.github.com/en/free-pro-team@latest/actions/reference/environment-variables#default-environment-variables [11]: https://img.shields.io/github/license/rlespinasse/github-slug-action [12]: https://github.com/rlespinasse/github-slug-action/blob/v3.x/LICENSE +[13]: https://github.com/rlespinasse/github-slug-action/workflows/Lint/badge.svg