Skip to content

Commit 4a28936

Browse files
committed
New action report-perl
Trivial action just to make list of steps to look fancy.
1 parent 28f8363 commit 4a28936

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ job:
6161
...
6262
steps:
6363
...
64+
- uses: perl-actions/ci-perl-tester-helpers/report-perl@main
6465
- uses: perl-actions/ci-perl-tester-helpers/install-test-helper-deps@main
6566
- uses: perl-actions/ci-perl-tester-helpers/cpan-install-build-deps@main
6667
- uses: perl-actions/ci-perl-tester-helpers/build-dist@main
@@ -88,6 +89,31 @@ Install dependencies required by ci-perl-tester-helpers
8889

8990
- `cpm` - required version min `0.997014`
9091

92+
## perl-actions/ci-perl-tester-helpers/report-perl@main
93+
94+
Report version and configuration of available Perl
95+
96+
Despite being simple `perl -V` (for now) naming it shows intention what
97+
you want to do.
98+
99+
### Inputs
100+
101+
- `artifact` (optional): When specified, output will be written also to this file.
102+
103+
### Examples
104+
105+
Basic usage:
106+
```yaml
107+
- uses: perl-actions/ci-perl-tester-helpers/report-perl@main
108+
```
109+
110+
Save output to a file:
111+
```yaml
112+
- uses: perl-actions/ci-perl-tester-helpers/report-perl@main
113+
with:
114+
artifact: perl-version.txt
115+
```
116+
91117
## perl-actions/ci-perl-tester-helpers/test-dist@main
92118
93119
Tests your distribution using `prove` with `--state save`.

report-perl/action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: 'perl -V'
3+
inputs:
4+
artifact:
5+
description: 'File name where to save output of command'
6+
required: false
7+
default: '/dev/null'
8+
runs:
9+
using: "composite"
10+
steps:
11+
- shell: bash
12+
run: |
13+
perl -V | tee "${{ inputs.artifact }}"

0 commit comments

Comments
 (0)