Skip to content

Commit ae24c8c

Browse files
committed
prettier
1 parent 5da536b commit ae24c8c

File tree

4 files changed

+146
-135
lines changed

4 files changed

+146
-135
lines changed

.github/workflows/check.yml

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,18 @@ name: check
33
on: [push]
44

55
jobs:
6-
7-
# note using ./ is a trick to be sure to use @master
8-
# otherwise it can be delayed...
9-
# we cannot use
10-
#
11-
# perl-actions/install-cpm@master
12-
# perl-actions/install-cpm@${{ github.sha }}
13-
#
14-
# https://i.8713187.xyzmunity/t5/GitHub-Actions/Usage-of-expressions-and-contexts-in-uses-clause/m-p/39502#M3835
6+
# note using ./ is a trick to be sure to use @master
7+
# otherwise it can be delayed...
8+
# we cannot use
9+
#
10+
# perl-actions/install-cpm@master
11+
# perl-actions/install-cpm@${{ github.sha }}
12+
#
13+
# https://i.8713187.xyzmunity/t5/GitHub-Actions/Usage-of-expressions-and-contexts-in-uses-clause/m-p/39502#M3835
1514

1615
cpm:
1716
runs-on: ubuntu-latest
18-
name: 'install cpm'
17+
name: "install cpm"
1918
steps:
2019
- uses: actions/checkout@v2
2120
- name: uses install-cpm
@@ -27,34 +26,34 @@ jobs:
2726
2827
cpm_version:
2928
runs-on: ubuntu-latest
30-
name: 'install cpm 0.990'
29+
name: "install cpm 0.990"
3130
steps:
3231
- uses: actions/checkout@v2
3332
- name: uses install-cpm
3433
uses: ./
3534
with:
36-
version: '0.990'
35+
version: "0.990"
3736
- name: cpm --version
3837
run: |
3938
cpm --version
4039
41-
### Install a single module
40+
### Install a single module
4241

4342
one_module:
4443
runs-on: ubuntu-latest
45-
name: 'cpm and a module'
44+
name: "cpm and a module"
4645
steps:
4746
- uses: actions/checkout@v2
4847
- name: uses install-cpm
4948
uses: ./
5049
with:
51-
install: 'Simple::Accessor'
50+
install: "Simple::Accessor"
5251

53-
### Install multiple modules
52+
### Install multiple modules
5453

5554
multiple_modules:
5655
runs-on: ubuntu-latest
57-
name: 'cpm & modules'
56+
name: "cpm & modules"
5857
steps:
5958
- uses: actions/checkout@v2
6059
- name: uses install-cpm
@@ -64,63 +63,63 @@ jobs:
6463
Simple::Accessor
6564
Test::Parallel
6665
67-
### Install modules from a cpanfile
66+
### Install modules from a cpanfile
6867

6968
cpanfile_root:
7069
runs-on: ubuntu-latest
71-
name: 'cpanfile as root'
70+
name: "cpanfile as root"
7271
steps:
7372
- uses: actions/checkout@v2
74-
- name: 'Create a cpanfile'
73+
- name: "Create a cpanfile"
7574
run: |
7675
echo "requires 'A1z::Html';" > cpanfile.test
7776
- name: uses install-cpm
7877
uses: ./
7978
with:
80-
cpanfile: 'cpanfile.test'
79+
cpanfile: "cpanfile.test"
8180

8281
cpanfile_nonroot:
8382
runs-on: ubuntu-latest
84-
name: 'cpanfile non root'
83+
name: "cpanfile non root"
8584
steps:
8685
- uses: actions/checkout@v2
87-
- name: 'Create a cpanfile'
86+
- name: "Create a cpanfile"
8887
run: |
8988
echo "requires 'A1z::Html';" > cpanfile.test
9089
- name: uses install-cpm
9190
uses: ./
9291
with:
93-
cpanfile: 'cpanfile.test'
92+
cpanfile: "cpanfile.test"
9493
sudo: false
9594
global: false
96-
path: 'cpm'
95+
path: "cpm"
9796

98-
### Install a module and enable tests
97+
### Install a module and enable tests
9998

10099
with_tests:
101100
runs-on: ubuntu-latest
102-
name: 'install with tests'
101+
name: "install with tests"
103102
steps:
104103
- uses: actions/checkout@v2
105104
- name: uses install-cpm
106105
uses: ./
107106
with:
108-
install: 'Simple::Accessor'
107+
install: "Simple::Accessor"
109108
tests: true
110109

111-
### check perl-tester
110+
### check perl-tester
112111

113112
perl_tester:
114113
runs-on: ubuntu-latest
115-
name: 'perl v${{ matrix.perl-version }}'
114+
name: "perl v${{ matrix.perl-version }}"
116115

117116
strategy:
118117
fail-fast: false
119118
matrix:
120119
perl-version:
121-
- '5.30'
122-
- '5.28'
123-
- '5.26'
120+
- "5.30"
121+
- "5.28"
122+
- "5.26"
124123

125124
container:
126125
image: perldocker/perl-tester:${{ matrix.perl-version }}
@@ -130,22 +129,22 @@ jobs:
130129
- name: uses install-cpm
131130
uses: ./
132131
with:
133-
install: 'Simple::Accessor'
132+
install: "Simple::Accessor"
134133
global: true
135134
sudo: false
136135

137-
### Use some custom args to install
136+
### Use some custom args to install
138137

139138
with_args:
140139
runs-on: ubuntu-latest
141-
name: 'cpanfile with args'
140+
name: "cpanfile with args"
142141
steps:
143142
- uses: actions/checkout@v2
144-
- name: 'Create a cpanfile'
143+
- name: "Create a cpanfile"
145144
run: |
146145
echo "requires 'A1z::Html';" > cpanfile.test
147146
- name: uses install-cpm
148147
uses: ./
149148
with:
150-
cpanfile: 'cpanfile.test'
151-
args: '--with-recommends --with-suggests'
149+
cpanfile: "cpanfile.test"
150+
args: "--with-recommends --with-suggests"

README.md

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ This action installs 'cpm' as root so you can then use it in your workflow.
1010
- name: install cpm and multiple modules
1111
uses: perl-actions/[email protected]
1212
with:
13-
install: |
14-
Simple::Accessor
15-
Test::Parallel
13+
install: |
14+
Simple::Accessor
15+
Test::Parallel
16+
1617
# or you can use a cpanfile
1718
# cpanfile: 'your-cpanfile'
1819
# default values you can customize
@@ -34,15 +35,15 @@ to test your Perl Module using multiple Perl versions.
3435
jobs:
3536
perl_tester:
3637
runs-on: ubuntu-latest
37-
name: 'perl v${{ matrix.perl-version }}'
38+
name: "perl v${{ matrix.perl-version }}"
3839

3940
strategy:
4041
fail-fast: false
4142
matrix:
4243
perl-version:
43-
- '5.30'
44-
- '5.28'
45-
- '5.26'
44+
- "5.30"
45+
- "5.28"
46+
- "5.26"
4647
# ...
4748
# - '5.8'
4849

@@ -54,7 +55,7 @@ jobs:
5455
- name: uses install-cpm
5556
uses: perl-actions/[email protected]
5657
with:
57-
cpanfile: 'cpanfile'
58+
cpanfile: "cpanfile"
5859
sudo: false
5960
- run: perl Makefile.PL
6061
- run: make test
@@ -117,7 +118,7 @@ You can then use cpm yourself in order commands.
117118
- name: install cpm
118119
uses: perl-actions/[email protected]
119120
# then you can use it
120-
- run: 'sudo cpm install -g Simple::Accessor'
121+
- run: "sudo cpm install -g Simple::Accessor"
121122
```
122123

123124
### Install an older version of cpm
@@ -129,7 +130,7 @@ You can then use cpm yourself in order commands.
129130
- name: install cpm
130131
uses: perl-actions/[email protected]
131132
with:
132-
version: '0.990'
133+
version: "0.990"
133134
```
134135

135136
### Install a single module
@@ -138,7 +139,7 @@ You can then use cpm yourself in order commands.
138139
- name: install cpm and one module
139140
uses: perl-actions/[email protected]
140141
with:
141-
install: 'Simple::Accessor'
142+
install: "Simple::Accessor"
142143
```
143144

144145
### Install multiple modules
@@ -149,9 +150,9 @@ List modules seperated by a newline character `\n`
149150
- name: install cpm and multiple modules
150151
uses: perl-actions/[email protected]
151152
with:
152-
install: |
153-
Simple::Accessor
154-
Test::Parallel
153+
install: |
154+
Simple::Accessor
155+
Test::Parallel
155156
```
156157

157158
### Install modules from a cpanfile
@@ -160,7 +161,7 @@ List modules seperated by a newline character `\n`
160161
- name: install cpm and files from cpanfile
161162
uses: perl-actions/[email protected]
162163
with:
163-
cpanfile: 'your-cpanfile'
164+
cpanfile: "your-cpanfile"
164165
```
165166

166167
### Install a module and enable tests
@@ -171,8 +172,8 @@ Install modules with tests.
171172
- name: install cpm and files from cpanfile
172173
uses: perl-actions/[email protected]
173174
with:
174-
install: 'Simple::Accessor'
175-
tests: true
175+
install: "Simple::Accessor"
176+
tests: true
176177
```
177178

178179
### Install module(s) to local directory
@@ -183,17 +184,17 @@ Disable the `-g` flag.
183184
- name: install cpm and files from cpanfile
184185
uses: perl-actions/[email protected]
185186
with:
186-
install: 'Simple::Accessor'
187-
global: false
188-
sudo: false
187+
install: "Simple::Accessor"
188+
global: false
189+
sudo: false
189190
```
190191

191192
### Use some custom args to install
192193

193194
```yaml
194-
- name: 'install cpm + cpanfile with args'
195+
- name: "install cpm + cpanfile with args"
195196
uses: perl-actions/[email protected]
196197
with:
197-
cpanfile: 'your-cpanfile'
198-
args: '--with-recommends --with-suggests'
198+
cpanfile: "your-cpanfile"
199+
args: "--with-recommends --with-suggests"
199200
```

action.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,51 @@
1-
name: 'install cpm'
2-
description: 'install App::cpm'
1+
name: "install cpm"
2+
description: "install App::cpm"
33
branding:
4-
icon: 'arrow-right'
5-
color: 'blue'
4+
icon: "arrow-right"
5+
color: "blue"
66
inputs:
7-
87
install:
9-
description: 'List of modules or distributions to install [seperated by newline]'
8+
description: "List of modules or distributions to install [seperated by newline]"
109
required: false
1110

1211
cpanfile:
13-
description: 'Use a cpanfile to install modules'
12+
description: "Use a cpanfile to install modules"
1413
required: false
1514

1615
tests:
17-
description: 'Run or not the unit tests'
16+
description: "Run or not the unit tests"
1817
required: false
1918
default: false
2019

2120
global:
22-
description: 'Perform a global or local installation: -g'
21+
description: "Perform a global or local installation: -g"
2322
required: false
2423
default: true
2524

2625
args:
27-
description: 'Extra args used passed to install command'
26+
description: "Extra args used passed to install command"
2827
required: false
2928

3029
sudo:
31-
description: 'Perform installations as root'
30+
description: "Perform installations as root"
3231
required: false
3332
default: true
3433

3534
perl:
36-
description: 'Path of perl to use default to currtent PATH'
35+
description: "Path of perl to use default to currtent PATH"
3736
required: false
38-
default: 'perl'
37+
default: "perl"
3938

4039
path:
41-
description: 'Path where to install cpm: the string can use $Config values'
40+
description: "Path where to install cpm: the string can use $Config values"
4241
required: false
4342
default: "$Config{installsitescript}/cpm"
4443

4544
version:
46-
description: 'Which version to install'
45+
description: "Which version to install"
4746
required: false
48-
default: 'master'
47+
default: "master"
4948

5049
runs:
51-
using: 'node12'
52-
main: 'index.js'
50+
using: "node12"
51+
main: "index.js"

0 commit comments

Comments
 (0)