From a0a5ddef778fab0094e962b2bbde9ac80f9b8274 Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Mon, 23 Aug 2021 15:37:00 -0400 Subject: [PATCH] Add Linter Workflow Template (#1532) --- .github/workflows/linter.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 000000000..2b6cfb7c1 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,26 @@ +name: Workflow Linter + +on: + push: + branches: add-workflow-linter + # branches-ignore: + # - 'l10n_master' + # - 'gh-pages' + # workflow_dispatch: + # inputs: {} + +jobs: + cloc: + name: CLOC + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + + - name: Install cloc + run: | + sudo apt-get update + sudo apt-get -y install cloc + + - name: Print lines of code + run: cloc --include-lang C#,SQL,Razor,"Bourne Shell",PowerShell,HTML,CSS,Sass,JavaScript,TypeScript --vcs git