Skip to content
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

Basic CI workflow #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
109 changes: 109 additions & 0 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: Perl testsuite

on:
push:
branches: ['*']
pull_request:
branches: ['*']

jobs:
ubuntu:
env:
PERL_USE_UNSAFE_INC: 0
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1
RELEASE_TESTING: 1
working-directory: ./Quota

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: perl -V
run: perl -V
## -------------------------------------------------
## you can use one of these helpers
## to install dependencies
## -------------------------------------------------
# - name: Install Dependencies from cpanfile
## -------------------------------------------------
# uses: perl-actions/install-with-cpm@stable
# with:
# cpanfile: "cpanfile"
## -------------------------------------------------
# - name: Install Dependencies from a custom list
## -------------------------------------------------
# uses: perl-actions/install-with-cpm@stable
# with:
# install: |
# List::of::Distro
# Test::More
- name: Makefile.PL
run: perl -I$(pwd) Makefile.PL
working-directory: ${{ env.working-directory }}
- name: make test
run: make test
working-directory: ${{ env.working-directory }}

linux:
name: "linux ${{ matrix.perl-version }}"
needs: [ubuntu]
env:
PERL_USE_UNSAFE_INC: 0
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1
RELEASE_TESTING: 1
working-directory: ./Quota

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
perl-version: [
## ------------------------------
## comment unsupported versions
## ------------------------------
"5.32",
"5.30",
"5.28",
"5.26",
"5.24",
"5.22",
"5.20",
"5.18",
"5.16",
"5.14",
"5.12",
"5.10",
"5.8",
]

container:
image: perl:${{ matrix.perl-version }}

steps:
- uses: actions/checkout@v2
- name: perl -V
run: perl -V
## -------------------------------------------------
# - name: Install Dependencies from cpanfile
## -------------------------------------------------
# uses: perl-actions/install-with-cpm@stable
# with:
# sudo: false
# cpanfile: "cpanfile"
## -------------------------------------------------
# - name: Install Dependencies from a custom list
## -------------------------------------------------
# uses: perl-actions/install-with-cpm@stable
# with:
# install: |
# List::of::Distro
# Test::More
- name: Makefile.PL
run: perl -I$(pwd) Makefile.PL
working-directory: ${{ env.working-directory }}
- name: make test
run: make test
working-directory: ${{ env.working-directory }}