Skip to content

Commit 28c1790

Browse files
committed
Expose helpers as github actions as well
1 parent 1e41dcd commit 28c1790

File tree

5 files changed

+69
-0
lines changed

5 files changed

+69
-0
lines changed

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,40 @@ curl https://raw.githubusercontent.com/perl-actions/ci-perl-tester-helpers/maste
4545
# Linting
4646

4747
You can lint this project locally via `precious lint --all`
48+
49+
# Github Actions
50+
51+
Commands are also available as github actions:
52+
```
53+
job:
54+
linux:
55+
...
56+
steps:
57+
...
58+
- uses: perl-actions/ci-perl-tester-helpers/cpan-install-build-deps@main
59+
- uses: perl-actions/ci-perl-tester-helpers/build-dist@main
60+
- uses: perl-actions/ci-perl-tester-helpers/cpan-install-dist-deps@main
61+
- uses: perl-actions/ci-perl-tester-helpers/test-dist@main
62+
env:
63+
AUTHOR_TESTING: 1
64+
```
65+
## perl-actions/ci-perl-tester-helpers/build-dist@master
66+
67+
Build your distribution detecting what framework you are using.
68+
69+
## perl-actions/ci-perl-tester-helpers/cpan-install-build-deps@master
70+
71+
Install build dependencies (eg: dzil modules referenced in your `dist.ini`)
72+
73+
## perl-actions/ci-perl-tester-helpers/cpan-install-dist-deps@master
74+
75+
Install dependencies of your distribution.
76+
77+
## perl-actions/ci-perl-tester-helpers/test-dist@master
78+
79+
Tests your distribution using `prove` with `--state save`.
80+
81+
Recognizes env variables:
82+
83+
- `AUTHOR_TESTING`
84+
If set to `1`, includes tests in `xt` directory (if available)

build-dist/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: 'Build distribution'
3+
description: 'Build distribution, automatically detecting how'
4+
runs:
5+
using: "composite"
6+
steps:
7+
- run: $GITHUB_ACTION_PATH/../bin/build-dist
8+
shell: bash

cpan-install-build-deps/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: 'Install build dependencies from CPAN'
3+
description: 'Install build dependencies from CPAN'
4+
runs:
5+
using: "composite"
6+
steps:
7+
- run: $GITHUB_ACTION_PATH/../bin/cpan-install-build-deps
8+
shell: bash

cpan-install-dist-deps/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: 'Install distribution dependencies from CPAN'
3+
description: 'Install distribution dependencies from CPAN'
4+
runs:
5+
using: "composite"
6+
steps:
7+
- run: $GITHUB_ACTION_PATH/../bin/cpan-install-dist-deps
8+
shell: bash

test-dist/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: 'Test distribution'
3+
description: 'Test distribution'
4+
runs:
5+
using: "composite"
6+
steps:
7+
- run: $GITHUB_ACTION_PATH/../bin/test-dist
8+
shell: bash

0 commit comments

Comments
 (0)