-
Notifications
You must be signed in to change notification settings - Fork 3
Add local-lib
for easy caching
#28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c3b4108
18edfa7
ac9adbb
1dff759
1eccbda
08bc2bc
aaf68bd
d49e030
d79a802
437b2bd
296823e
c3171b5
9214a71
c29825e
ac776c7
febadd0
f49f664
1a0576d
26a9752
472f93d
f7892da
2b4d668
15e5f2a
9625fae
baad5a1
4ab6f5a
8a59e1d
333b49b
78bdd7f
8843940
b170e5e
503c434
3c29273
d5dad82
79b0eb1
d1fc610
66823f5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Lint javascript | ||
on: | ||
push: | ||
paths: | ||
- '*.js' | ||
- '.github/workflows/lint-javascript.yml' | ||
- 'eslint.config.js' | ||
- 'package*' | ||
pull_request: | ||
paths: | ||
- '*.js' | ||
- '.github/workflows/lint-javascript.yml' | ||
- 'eslint.config.js' | ||
- 'package*' | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Lint javascript | ||
run: npm run lint |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[](https://github.com/perl-actions/install-with-cpanm/actions) | ||
[](https://github.com/perl-actions/install-with-cpanm/actions) [](https://github.com/perl-actions/install-with-cpanm/actions/workflows/lint-javascript.yml) | ||
|
||
# install-with-cpanm | ||
|
||
|
@@ -8,7 +8,7 @@ This action installs 'cpanminus' then use it if needed to install some Perl Modu | |
|
||
```yaml | ||
- name: install cpanm and multiple modules | ||
uses: perl-actions/install-with-cpanm@stable | ||
uses: perl-actions/install-with-cpanm@v1 | ||
with: | ||
install: | | ||
Simple::Accessor | ||
|
@@ -22,6 +22,8 @@ This action installs 'cpanminus' then use it if needed to install some Perl Modu | |
# path: "$Config{installsitescript}/cpanm" | ||
# which perl binary to use | ||
# perl: 'perl' | ||
# Use a local library | ||
# local-lib: ~/perl5 | ||
``` | ||
|
||
## Using install-with-cpanm in a GitHub workflow | ||
|
@@ -53,7 +55,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- name: uses install-with-cpanm | ||
uses: perl-actions/install-with-cpanm@stable | ||
uses: perl-actions/install-with-cpanm@v1 | ||
with: | ||
cpanfile: "cpanfile" | ||
sudo: false | ||
|
@@ -113,6 +115,11 @@ By setting PATH correctly you probably do not need to use it. | |
Where to install `cpanm`. Default value is `$Config{installsitescript}/cpanm`. | ||
You can use any `$Config` variable in your string. | ||
|
||
### `local-lib` | ||
|
||
Local (user space) library where `cpanm` will install the distributions. Use | ||
this for caching, for instance. | ||
|
||
## Outputs | ||
|
||
none | ||
|
@@ -199,3 +206,38 @@ windows: | |
- run: perl -Mabbreviation -e1 | ||
- run: perl -MACH -e1 | ||
``` | ||
|
||
### Using install-with-cpanm for installation in local library | ||
|
||
```yaml | ||
local_lib: | ||
runs-on: ubuntu-latest | ||
name: 'local-lib' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: 'install-with-cpanm' | ||
uses: ./ | ||
with: | ||
install: 'Simple::Accessor' | ||
local-lib: '~/perl5' | ||
sudo: false | ||
verbose: true | ||
``` | ||
|
||
|
||
## License | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added this license for clarity, since I was forking. You might want either to delete it, or to expand collaborator names from nicks. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. indeed we might prefer a more generic Perl'ish license There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then you will need to change the short license name in package.json, assuming that artistic-2.0 is compatible with it. I guess ISC (the one here, which I just transcribed, keeping it in |
||
|
||
Copyright (c) 2022-2024, Atoomic, Olaf Alders, haarg, Brian C. Arnold, mohawk2 | ||
|
||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted, provided that the above | ||
copyright notice and this permission notice appear in all copies. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
Uh oh!
There was an error while loading. Please reload this page.