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
1 change: 0 additions & 1 deletion .github/actions/cpan-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,3 @@ runs:
name: cpan_log
path: /home/runner/.cpanm/work/*/build.log
retention-days: 5

22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on:
push:
branches: [main]
paths:
- '**.yml'
- '**.yaml'
- '.yamllint'
pull_request:
branches: [main]
paths:
- '**.yml'
- '**.yaml'
- '.yamllint'
workflow_dispatch:

permissions: {}

jobs:
yaml-lint:
uses: ./.github/workflows/yaml-lint.yml
1 change: 0 additions & 1 deletion .github/workflows/cpan-complexity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ jobs:
- name: Run countperl
run: |
countperl lib

1 change: 0 additions & 1 deletion .github/workflows/cpan-kwality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ jobs:
run: |
perlcritic .
continue-on-error: true

1 change: 0 additions & 1 deletion .github/workflows/cpan-perlcritic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ jobs:
run: |
perlcritic -${{ inputs.level }} .
continue-on-error: true

1 change: 0 additions & 1 deletion .github/workflows/cpan-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ jobs:
jq -r .name META.json
jq -r .version META.json
ls -l *.tar.gz

1 change: 0 additions & 1 deletion .github/workflows/cpan-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ jobs:
perl_version: ${{ matrix.perl }}
os: ${{ matrix.os }}
testing_context: ${{ inputs.testing_context }}

19 changes: 19 additions & 0 deletions .github/workflows/yaml-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: YAML Linting

on:
workflow_call:

permissions:
contents: read

jobs:
yaml-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install yamllint
run: |
pip install yamllint==1.38.0
- name: Run yamllint
run: |
yamllint .
20 changes: 20 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
extends: default

rules:
# Allow longer lines for GitHub Actions workflows (URLs, etc.)
line-length:
max: 120
level: warning

# Document start is not required for GitHub Actions
document-start: disable

# Limit trailing empty lines to 1 maximum
empty-lines:
max: 1

# Allow truthy values (on, off, yes, no) in GitHub Actions
truthy:
allowed-values: ['true', 'false', 'on', 'off']
check-keys: false
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ Runs `perlcritic` against your Perl code

* ***level***: A number from 1 to 5 defining how brutal `perlcritic` will be. The default is 5

#### yaml-lint

Lints YAML files using `yamllint` to ensure they follow best practices and are properly formatted

### In early development

These workflows aren't guaranteed to do what they need to yet. They'll probably change quickly
Expand Down