Skip to content

Commit d7a0fcb

Browse files
committed
Add CI run for precious
1 parent fae7f80 commit d7a0fcb

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,32 @@ jobs:
4646
run: cpan-install-dist-deps --with-develop && test-dist
4747
env:
4848
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
49+
linter-job:
50+
name: lint
51+
runs-on: ubuntu-latest
52+
container:
53+
image: perldocker/perl-tester:5.42
54+
steps:
55+
- uses: actions/checkout@v5
56+
with:
57+
fetch-depth: 0
58+
- name: Install deps and test
59+
run: cpan-install-dist-deps --with-develop
60+
- name: Install precious and omegasort
61+
uses: oalders/[email protected]
62+
with:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
projects: |
65+
houseabsolute/omegasort
66+
houseabsolute/precious
67+
- name: precious lint
68+
run: |
69+
if [ "${{ github.ref }}" = "refs/heads/master" ]; then
70+
precious lint -q --all
71+
else
72+
git fetch origin master:refs/remotes/origin/master
73+
precious lint -q --git-diff-from origin/${{ github.base_ref }}
74+
fi
4975
http-one-one-regression-job:
5076
name: HTTP/1.1 Keepalive Regression Test - see GH \# 14
5177
needs: build-job

0 commit comments

Comments
 (0)