Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: lint

on:
push:
branches:
- master
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
precious:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: "5.42"
- uses: oalders/install-ubi-action@v0.0.6
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
projects: |
houseabsolute/precious
houseabsolute/omegasort
- uses: perl-actions/install-with-cpm@v2
with:
install: |
App::perlvars
Perl::Tidy
sudo: false
- run: precious lint --all
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ pm_to_blib
t/CAN_TALK_TO_OURSELF
*.tar.gz
t/live/ENABLED
tidyall.ini
xx*
1 change: 0 additions & 1 deletion perltidyrc → .perltidyrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
--blank-lines-before-packages=0
--iterations=2
--no-outdent-long-comments
-b
-bar
-boc
-ci=4
Expand Down
3 changes: 2 additions & 1 deletion cpanfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is generated by Dist::Zilla::Plugin::CPANFile v6.031
# This file is generated by Dist::Zilla::Plugin::CPANFile v6.037
# Do not edit this file directly. To change prereqs, edit the `dist.ini` file.

requires "Carp" => "0";
Expand Down Expand Up @@ -27,6 +27,7 @@ on 'configure' => sub {
};

on 'develop' => sub {
requires "App::perlvars" => "0";
requires "Pod::Coverage::TrustPod" => "0";
requires "Test::CPAN::Changes" => "0.19";
requires "Test::EOL" => "0";
Expand Down
8 changes: 8 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@ Test::Pod::Coverage::Configurable.skip = HTTP::Cookies::Microsoft
Test::Pod::Coverage::Configurable.trustme = HTTP::Cookies => qr/set_cookie_ok/

[BumpVersionAfterRelease]

[Prereqs / DevelopRequires]
App::perlvars = 0

[PruneFiles]
filename = precious.toml
filename = .perltidyrc
filename = scripts/pre-commit
Loading
Loading