From c2a06891941aba6bbacc9fd30f99b2194fe03cd1 Mon Sep 17 00:00:00 2001 From: Kang-min Liu Date: Tue, 16 Mar 2021 22:59:25 +0900 Subject: [PATCH] [CI] extend the linting flow. --- .github/workflows/ci.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27744657..26c52939 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,14 +3,23 @@ name: CI on: pull_request jobs: - perlcritic: + lint: runs-on: ubuntu-latest + container: + image: perl:5.32 steps: - uses: actions/checkout@v2 - - name: perlcritic - uses: gugod/actions-perlcritic@fun + - uses: gugod/action-perlcritic@fun with: directory: "lib script t dev-bin" + - name: install perlnitpick + run: cpanm --notest --quiet https://github.com/gugod/App-PerlNitpick.git + - name: run perlnitpick + run: perlnitpick --inplace --rules=RemoveTrailingWhitespace,RemoveUnusedVariables,RemoveUnusedInclude,RemoveUnusedImport . + - name: suggester + uses: reviewdog/action-suggester@v1 + with: + tool_name: perlnitpick yath: runs-on: ${{ matrix.os }}