Skip to content

Commit 8b1a984

Browse files
authored
Merge pull request #24 from perl-actions/multiple-improvements
Multiple improvements to cpm
2 parents dcfb65d + 1f8559e commit 8b1a984

File tree

656 files changed

+32080
-133941
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

656 files changed

+32080
-133941
lines changed

.github/workflows/check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: check
33

4-
on: [push]
4+
on: [push, pull_request]
55

66
jobs:
77
# note using ./ is a trick to be sure to use @master

.github/workflows/lint-javascript.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Lint javascript
2+
on:
3+
push:
4+
paths:
5+
- '*.js'
6+
- '.github/workflows/lint-javascript.yml'
7+
- 'eslint.config.js'
8+
- 'package*'
9+
pull_request:
10+
paths:
11+
- '*.js'
12+
- '.github/workflows/lint-javascript.yml'
13+
- 'eslint.config.js'
14+
- 'package*'
15+
jobs:
16+
lint:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Install dependencies
21+
run: npm ci
22+
- name: Lint javascript
23+
run: npm run lint

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules/

README.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
[![Actions Status](https://github.com/perl-actions/install-with-cpm/workflows/check/badge.svg)](https://github.com/perl-actions/install-with-cpm/actions)
1+
[![Actions Status](https://github.com/perl-actions/install-with-cpm/workflows/check/badge.svg)](https://github.com/perl-actions/install-with-cpm/actions) [![Lint javascript](https://github.com/perl-actions/i
2+
nstall-with-cpm/actions/workflows/lint-javascript.yml/badge.svg)](https://github.com/perl-actions/install-with-cpm/actions/workflows/lint-javascript.yml)
23

34
# install-with-cpm
45

@@ -8,7 +9,7 @@ This action installs 'cpm' as root so you can then use it in your workflow.
89

910
```yaml
1011
- name: install cpm and multiple modules
11-
uses: perl-actions/install-with-cpm@stable
12+
uses: perl-actions/install-with-cpm@v1
1213
with:
1314
install: |
1415
Simple::Accessor
@@ -54,7 +55,7 @@ jobs:
5455
steps:
5556
- uses: actions/checkout@v3
5657
- name: uses install-with-cpm
57-
uses: perl-actions/install-with-cpm@stable
58+
uses: perl-actions/install-with-cpm@v1
5859
with:
5960
cpanfile: "cpanfile"
6061
sudo: false
@@ -131,7 +132,7 @@ You can then use cpm yourself in order commands.
131132

132133
```yaml
133134
- name: install cpm
134-
uses: perl-actions/install-with-cpm@stable
135+
uses: perl-actions/install-with-cpm@v1
135136
# then you can use it
136137
- run: "sudo cpm install -g Simple::Accessor"
137138
```
@@ -143,7 +144,7 @@ You can then use cpm yourself in order commands.
143144

144145
```yaml
145146
- name: install cpm
146-
uses: perl-actions/install-with-cpm@stable
147+
uses: perl-actions/install-with-cpm@v1
147148
with:
148149
version: "0.990"
149150
```
@@ -152,7 +153,7 @@ You can then use cpm yourself in order commands.
152153

153154
```yaml
154155
- name: install cpm and one module
155-
uses: perl-actions/install-with-cpm@stable
156+
uses: perl-actions/install-with-cpm@v1
156157
with:
157158
install: "Simple::Accessor"
158159
```
@@ -163,7 +164,7 @@ List modules seperated by a newline character `\n`
163164

164165
```yaml
165166
- name: install cpm and multiple modules
166-
uses: perl-actions/install-with-cpm@stable
167+
uses: perl-actions/install-with-cpm@v1
167168
with:
168169
install: |
169170
Simple::Accessor
@@ -174,7 +175,7 @@ List modules seperated by a newline character `\n`
174175

175176
```yaml
176177
- name: install cpm and files from cpanfile
177-
uses: perl-actions/install-with-cpm@stable
178+
uses: perl-actions/install-with-cpm@v1
178179
with:
179180
cpanfile: "your-cpanfile"
180181
```
@@ -185,7 +186,7 @@ Install modules with tests.
185186

186187
```yaml
187188
- name: install cpm and files from cpanfile
188-
uses: perl-actions/install-with-cpm@stable
189+
uses: perl-actions/install-with-cpm@v1
189190
with:
190191
install: "Simple::Accessor"
191192
tests: true
@@ -197,7 +198,7 @@ Disable the `-g` flag.
197198

198199
```yaml
199200
- name: install cpm and files from cpanfile
200-
uses: perl-actions/install-with-cpm@stable
201+
uses: perl-actions/install-with-cpm@v1
201202
with:
202203
install: "Simple::Accessor"
203204
global: false
@@ -208,7 +209,7 @@ Disable the `-g` flag.
208209

209210
```yaml
210211
- name: "install cpm + cpanfile with args"
211-
uses: perl-actions/install-with-cpm@stable
212+
uses: perl-actions/install-with-cpm@v1
212213
with:
213214
cpanfile: "your-cpanfile"
214215
args: "--with-recommends --with-suggests"
@@ -247,7 +248,7 @@ windows:
247248
- uses: actions/checkout@v3
248249
- name: "install-with-cpm"
249250
250-
uses: perl-actions/install-with-cpm@stable
251+
uses: perl-actions/install-with-cpm@v1
251252
with:
252253
install: |
253254
abbreviation

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ inputs:
5353

5454
runs:
5555
using: "node20"
56-
main: "index.js"
56+
main: "dist/index.js"

0 commit comments

Comments
 (0)