Skip to content

Fix CI failures #12

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

Merged
merged 4 commits into from
Oct 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 29 additions & 33 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
name: check

on: [push]

jobs:
cpanm:
runs-on: ubuntu-latest
name: "install cpanm"
name: 'install cpanm'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: uses install-with-cpanm
uses: ./
- name: which cpanm
Expand All @@ -19,13 +20,13 @@ jobs:

one_module:
runs-on: ubuntu-latest
name: "cpanm and a module"
name: 'cpanm and a module'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: uses install-with-cpanm
uses: ./
with:
install: "Simple::Accessor"
install: 'Simple::Accessor'
- run: perl -MSimple::Accessor -e1

### ------------------------------------------------
Expand All @@ -34,9 +35,9 @@ jobs:

multiple_modules:
runs-on: ubuntu-latest
name: "cpanm & modules"
name: 'cpanm & modules'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: uses install-with-cpanm
uses: ./
with:
Expand All @@ -52,33 +53,33 @@ jobs:

cpanfile_root:
runs-on: ubuntu-latest
name: "cpanfile as root"
name: 'cpanfile as root'
steps:
- uses: actions/checkout@v2
- name: "Create a cpanfile"
- uses: actions/checkout@v3
- name: 'Create a cpanfile'
run: |
echo "requires 'Simple::Accessor';" > cpanfile.test
- name: uses install-with-cpanm
uses: ./
with:
cpanfile: "cpanfile.test"
cpanfile: 'cpanfile.test'
- run: perl -MSimple::Accessor -e1

cpanfile_nonroot:
runs-on: ubuntu-latest
name: "cpanfile nonroot local::lib"
name: 'cpanfile nonroot local::lib'
steps:
- uses: actions/checkout@v2
- name: "Create a cpanfile"
- uses: actions/checkout@v3
- name: 'Create a cpanfile'
run: |
echo "requires 'Simple::Accessor';" > cpanfile.test
- name: uses install-with-cpanm
uses: ./
with:
path: "cpanm-local"
cpanfile: "cpanfile.test"
path: 'cpanm-local'
cpanfile: 'cpanfile.test'
sudo: false
args: "-L vendor"
args: '-L vendor'
- run: sudo perl cpanm-local local::lib
- run: perl -Mlocal::lib=--no-create,vendor -MSimple::Accessor -e1

Expand All @@ -88,15 +89,15 @@ jobs:

with_tests:
runs-on: ubuntu-latest
name: "install with tests"
name: 'install with tests'
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: uses install-with-cpanm
uses: ./
with:
install: "Simple::Accessor"
install: 'Simple::Accessor'
tests: true
args: "-v"
args: '-v'
- run: perl -MSimple::Accessor -e1

### ------------------------------------------------
Expand All @@ -105,21 +106,21 @@ jobs:

perl_tester:
runs-on: ubuntu-latest
name: "perl v${{ matrix.perl-version }}"
name: 'perl v${{ matrix.perl-version }}'

strategy:
fail-fast: false
matrix:
perl-version:
- "5.30"
- "5.28"
- '5.30'
- '5.28'
# ...

container:
image: perldocker/perl-tester:${{ matrix.perl-version }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: uses install-with-cpanm
uses: ./
with:
Expand All @@ -136,19 +137,14 @@ jobs:
## ------------------------------------------------
windows:
runs-on: windows-latest
name: "windows"
name: 'windows'

steps:
- name: Set up Perl
run: |
choco install strawberryperl
echo "##[add-path]C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin"

- name: perl -V
run: perl -V

- uses: actions/checkout@v2
- name: "install-with-cpanm"
- uses: actions/checkout@v3
- name: 'install-with-cpanm'

uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ inputs:
default: "$Config{installsitescript}/cpanm"

runs:
using: "node12"
using: "node16"
main: "index.js"