Skip to content

Commit

Permalink
Add GitHub workflow
Browse files Browse the repository at this point in the history
also provides some badges on the mkdn page.
  • Loading branch information
atoomic committed Apr 15, 2020
1 parent 9566e9c commit a79238d
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: linux

on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:

jobs:
perl:
env:
# some plugins still needs this to run their tests...
PERL_USE_UNSAFE_INC: 0
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1
RELEASE_TESTING: 1

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
perl-version:
- '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: perldocker/perl-tester:${{ matrix.perl-version }}

steps:
- uses: actions/checkout@v2
- name: perl -V
run: perl -V
- name: Makefile.PL
run: perl Makefile.PL
- name: make test
run: make test
- name: make install
run: make install
33 changes: 33 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: macos

on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:

jobs:
perl:
env:
PERL_USE_UNSAFE_INC: 0
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1
RELEASE_TESTING: 1

runs-on: macOS-latest

strategy:
fail-fast: false
matrix:
perl-version: [latest]

steps:
- uses: actions/checkout@v2
- name: perl -V
run: perl -V
- name: Makefile.PL
run: perl Makefile.PL
- name: make test
run: make test
37 changes: 37 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: windows

on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:

jobs:
perl:
env:
PERL_USE_UNSAFE_INC: 0
AUTHOR_TESTING: 0
AUTOMATED_TESTING: 1
RELEASE_TESTING: 0

runs-on: windows-latest

strategy:
fail-fast: false
matrix:
perl-version: [latest]

steps:
- uses: actions/checkout@v2
- 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
- name: Makefile.PL
run: perl Makefile.PL
- name: make test
run: make test
4 changes: 4 additions & 0 deletions CONTRIBUTING.mkdn
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[![Actions Status](https://github.com/atoomic/File-pushd/workflows/linux/badge.svg)](https://github.com/atoomic/File-pushd/actions)
[![Actions Status](https://github.com/atoomic/File-pushd/workflows/macos/badge.svg)](https://github.com/atoomic/File-pushd/actions)
[![Actions Status](https://github.com/atoomic/File-pushd/workflows/windows/badge.svg)](https://github.com/atoomic/File-pushd/actions)

## HOW TO CONTRIBUTE

Thank you for considering contributing to this distribution. This file
Expand Down
5 changes: 5 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ stopwords = destructor
stopwords = pathname
stopwords = tempd

[GitHubREADME::Badge]
badges = github_actions/linux
badges = github_actions/macos
badges = github_actions/windows

[ReleaseStatus::FromVersion]
testing = third_decimal_odd

0 comments on commit a79238d

Please sign in to comment.