Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ff070c8
Added new action for executing tests
crenz Jul 30, 2022
82d4b0e
Update run-tests.yml
crenz Jul 30, 2022
6905c1b
Create list-perl-versions.yml
crenz Jul 30, 2022
fcbc74d
Rename run-tests.yml to run-tests-matrix.yml
crenz Jul 30, 2022
9403600
Update run-tests-matrix.yml
crenz Jul 30, 2022
39c6c5e
Create run-tests-simple.yml
crenz Jul 30, 2022
49acfb3
Update run-tests-simple.yml
crenz Jul 30, 2022
2943cc7
Update run-tests-matrix.yml
crenz Jul 30, 2022
1fcc895
Create test-perl58.yml
crenz Jul 30, 2022
7f4da94
Update run-tests-matrix.yml
crenz Jul 30, 2022
c6d17fd
Update test-perl58.yml
crenz Jul 30, 2022
2834b38
Update run-tests-simple.yml
crenz Jul 30, 2022
f0ffe89
Rename run-tests-simple.yml to manual-tests-simple.yml
crenz Jul 30, 2022
0f05546
Update and rename list-perl-versions.yml to manual-list-perl-versions…
crenz Jul 30, 2022
91f13e0
Update and rename test-perl58.yml to auto-tests-perl58.yml
crenz Jul 30, 2022
ecbb382
Update and rename run-tests-matrix.yml to auto-run-tests-matrix.yml
crenz Jul 30, 2022
1088cf5
Create periodically-tests-latest.yml
crenz Jul 30, 2022
2b44997
Update periodically-tests-latest.yml
crenz Jul 30, 2022
b5632a9
Create test-branches-latest.yml
crenz Jul 30, 2022
2be438b
Rename test-branches-latest.yml to auto-test-branches-latest.yml
crenz Jul 30, 2022
512a8cb
Delete auto-tests-perl58.yml
crenz Jul 30, 2022
f7668b3
Update auto-run-tests-matrix.yml
crenz Jul 30, 2022
f298df4
Update periodically-tests-latest.yml
crenz Jul 30, 2022
3b0da95
Changed minimum perl version supported to 5.8.1
crenz Jul 30, 2022
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
49 changes: 49 additions & 0 deletions .github/workflows/auto-run-tests-matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Run tests on master (matrixed)

on:
push:
branches: [ "master" ]

workflow_dispatch:

jobs:
test-matrix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
perl: [ '5', '5.32', '5.8.1' ]
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- name: Identify perl version
run: perl -V
- name: Install dependencies
run: cpanm --installdeps .
- run: cpanm Test::Pod
- run: cpanm Test::Pod::Coverage
- run: cpanm Test::CPAN::Meta
- name: Run tests
run: make test TEST_VERBOSE=1
test-strawberry:
runs-on: 'windows-latest'
strategy:
matrix:
perl: [ '5', '5.32' ]
name: Perl ${{ matrix.perl }} on windows-latest (strawberry)
steps:
- uses: actions/checkout@v3
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- name: Identify perl version
run: perl -V
- name: Install dependencies
run: cpanm --installdeps .
- name: Run tests
run: make test TEST_VERBOSE=1
52 changes: 52 additions & 0 deletions .github/workflows/auto-test-branches-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Run tests on branches & pull requests (Ubuntu/MacOS/Windows, latest)

on:
push:
branches-ignore:
- master
pull_request:
branches: [ "**" ]

workflow_dispatch:

jobs:
test-matrix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
perl: [ '5' ]
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- name: Identify perl version
run: perl -V
- name: Install dependencies
run: cpanm --installdeps .
- run: cpanm Test::Pod
- run: cpanm Test::Pod::Coverage
- run: cpanm Test::CPAN::Meta
- name: Run tests
run: make test TEST_VERBOSE=1
test-strawberry:
runs-on: 'windows-latest'
strategy:
matrix:
perl: [ '5' ]
name: Perl ${{ matrix.perl }} on windows-latest (strawberry)
steps:
- uses: actions/checkout@v3
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- name: Identify perl version
run: perl -V
- name: Install dependencies
run: cpanm --installdeps .
- name: Run tests
run: make test TEST_VERBOSE=1
112 changes: 112 additions & 0 deletions .github/workflows/manual-list-perl-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Manually list available versions of Perl

on:
workflow_dispatch:

jobs:
listubuntu:
name: Perl versions on Ubuntu
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-setup-perl@v1
- id: set-matrix
name: list available perl versions
shell: perl {0}
run: |
use Actions::Core;
set_output(matrix => {perl => [perl_versions()]});
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}

runubuntu:
runs-on: ubuntu-latest
needs: listubuntu
strategy:
fail-fast: false
matrix: ${{fromJson(needs.listubuntu.outputs.matrix)}}
steps:
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- run: perl -V

listmacos:
name: Perl versions on MacOS
runs-on: macos-latest
steps:
- uses: shogo82148/actions-setup-perl@v1
- id: set-matrix
name: list available perl versions
shell: perl {0}
run: |
use Actions::Core;
set_output(matrix => {perl => [perl_versions()]});
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}

runmacos:
runs-on: macos-latest
needs: listmacos
strategy:
fail-fast: false
matrix: ${{fromJson(needs.listmacos.outputs.matrix)}}
steps:
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- run: perl -V

listwindows:
name: Perl versions on Windows
runs-on: windows-latest
steps:
- uses: shogo82148/actions-setup-perl@v1
- id: set-matrix
name: list available perl versions
shell: perl {0}
run: |
use Actions::Core;
set_output(matrix => {perl => [perl_versions()]});
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}

runwindows:
runs-on: windows-latest
needs: listmacos
strategy:
fail-fast: false
matrix: ${{fromJson(needs.listwindows.outputs.matrix)}}
steps:
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- run: perl -V

listwindowsstrawberry:
name: Perl versions on Windows
runs-on: windows-latest
steps:
- uses: shogo82148/actions-setup-perl@v1
with:
distribution: strawberry
- id: set-matrix
name: list available perl versions
shell: perl {0}
run: |
use Actions::Core;
set_output(matrix => {perl => [perl_versions()]});
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}

runwindowsstrawberry:
runs-on: windows-latest
needs: listmacos
strategy:
fail-fast: false
matrix: ${{fromJson(needs.listwindowsstrawberry.outputs.matrix)}}
steps:
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
distribution: strawberry
- run: perl -V
26 changes: 26 additions & 0 deletions .github/workflows/manual-tests-simple.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Manually run tests (Ubuntu, Perl 5 latest)

on:
workflow_dispatch:

jobs:
# This workflow contains a single job called "build"
tests:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.34'
install-modules-with: cpanm
install-modules-args: --with-develop --with-configure
- name: Identify perl version
run: perl -V
- name: Build module
run: perl Makefile.PL
- name: Run tests
run: make test TEST_VERBOSE=1
48 changes: 48 additions & 0 deletions .github/workflows/periodically-tests-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Periodically run tests (matrixed on latest)

on:
schedule:
- cron: 0 5 15 3/4 *
workflow_dispatch:

jobs:
test-matrix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
perl: [ '5' ]
name: Perl ${{ matrix.perl }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- name: Identify perl version
run: perl -V
- name: Install dependencies
run: cpanm --installdeps .
- run: cpanm Test::Pod
- run: cpanm Test::Pod::Coverage
- run: cpanm Test::CPAN::Meta
- name: Run tests
run: make test TEST_VERBOSE=1
test-strawberry:
runs-on: 'windows-latest'
strategy:
matrix:
perl: [ '5' ]
name: Perl ${{ matrix.perl }} on windows-latest (strawberry)
steps:
- uses: actions/checkout@v3
- name: Set up perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- name: Identify perl version
run: perl -V
- name: Install dependencies
run: cpanm --installdeps .
- name: Run tests
run: make test TEST_VERBOSE=1
2 changes: 1 addition & 1 deletion META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build_requires:
requires:
File::Find: 0
File::Spec: 0
perl: 5.006001
perl: 5.008001
Test::More: 0
resources:
repository: http://github.com/crenz/Module-Find
Expand Down