Update README with installation instructions for FHEM #135
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Perlcritic check | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.head.ref || github.ref_name }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths: | |
| - 'FHEM/**' | |
| - 'lib/**' | |
| - '.perlcritic' | |
| - '.github/workflows/perlCritic.yml' | |
| workflow_dispatch: | |
| jobs: | |
| critic: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - uses: shogo82148/actions-setup-perl@v1.38.1 | |
| with: | |
| perl-version: '5.38' | |
| install-modules-with: cpanm | |
| install-modules: Perl::Critic Task::PerlCriticAllPolicies | |
| install-modules-args: --notest | |
| - uses: reviewdog/action-setup@v1 | |
| with: | |
| reviewdog_version: latest | |
| - name: Run perlcritic and report via reviewdog | |
| env: | |
| REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| (perlcritic --verbose 1 --profile .perlcritic ./FHEM; perlcritic --verbose 1 --profile .perlcritic ./lib) | reviewdog -efm '%f:%l:%c:%m' -name='perlcritic' -reporter='github-pr-check' -filter-mode='added' -fail-on-error='false' -level='warning' |