Skip to content

Commit

Permalink
Migrate Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bayashi committed May 25, 2020
1 parent 2ff14b6 commit c51fc6c
Show file tree
Hide file tree
Showing 7 changed files with 174 additions and 6 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/linux_old_versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: linux_old_versions

on:
push:
branches:
- master
tags-ignore:
- '*'
pull_request:
branches:
- '!bump-version'
- '!bump_version'
- '!doc?'
- '!pod'

jobs:
perl:
runs-on: ubuntu-latest

strategy:
matrix:
perl-version:
- '5.8'
- '5.18'
- '5.28'

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

steps:
- uses: actions/checkout@v1
- name: perl -V
run: perl -V
- name: Install dependencies
run: curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --show-build-log-on-failure
- name: Run test
run: prove -l t
27 changes: 27 additions & 0 deletions .github/workflows/mac_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: mac_latest

on:
push:
branches:
- master
tags-ignore:
- '*'
pull_request:
branches:
- '!bump-version'
- '!bump_version'
- '!doc?'
- '!pod'

jobs:
perl:
runs-on: macOS-latest

steps:
- uses: actions/checkout@master
- name: perl -V
run: perl -V
- name: Install dependencies
run: curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --with-develop --show-build-log-on-failure
- name: Run test
run: prove -l t
36 changes: 36 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: master

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

jobs:
perl:
runs-on: ubuntu-latest

container:
image: perl:latest

steps:
- uses: actions/checkout@v1
- name: perl -V
run: perl -V
- name: Install dependencies
run: curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --with-develop --show-build-log-on-failure
- name: Run build
run: perl Build.PL
- name: Build manifest
run: ./Build manifest
- name: Run test
run: ./Build test
- name: Run Cover
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
curl -sL https://git.io/cpm | perl - install -g --show-build-log-on-failure Devel::Cover::Report::Coveralls
cover -test
cover -report coveralls
41 changes: 41 additions & 0 deletions .github/workflows/upload_cpan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: upload_cpan

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

jobs:
perl:
runs-on: ubuntu-latest

container:
image: perl:latest

steps:
- uses: actions/checkout@v1
- name: perl -V
run: perl -V
- name: Install dependencies
run: curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --with-develop --show-build-log-on-failure
- name: Run build
run: |
perl Makefile.PL && make && make manifest
make disttest
make dist
- name: CPANize
env:
PAUSE_USER: ${{ secrets.PAUSE_USER }}
PAUSE_PASSWORD: ${{ secrets.PAUSE_PASSWORD }}
PAUSE_MAILTO: ${{ secrets.PAUSE_MAILTO }}
run: |
curl -sL https://git.io/cpm | perl - install -g --show-build-log-on-failure CPAN::Uploader
echo "user" $PAUSE_USER > $HOME/.pause
echo "password" $PAUSE_PASSWORD >> $HOME/.pause
echo "mailto" $PAUSE_MAILTO >> $HOME/.pause
chmod 0600 $HOME/.pause
ls -la $HOME
ls -la
cpan-upload -c $HOME/.pause -u $PAUSE_USER -p "" ./Amazon-PAApi5-Signature-`perl -Ilib -MAmazon::PAApi5::Signature -e 'print $Amazon::PAApi5::Signature::VERSION'`.tar.gz
22 changes: 22 additions & 0 deletions .github/workflows/windows_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: windows_latest

on:
push:
branches:
- master
- '**windows**'
tags-ignore:
- '*'

jobs:
perl:
runs-on: windows-latest

steps:
- uses: actions/checkout@master
- name: perl -V
run: perl -V
- name: Install dependencies
run: curl -sL https://git.io/cpm | perl - install -g --with-recommends --with-test --with-configure --with-develop --show-build-log-on-failure
- name: Run test
run: prove -l t
16 changes: 10 additions & 6 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
Revision history for Perl extension Amazon::PAApi5::Signature
## Amazon::PAApi5::Signature commit log

0.02 Thu Jan 30 02:35:05 JST 2020
- Improve POD
- Add example script of US region
https://github.com/bayashi/Amazon-PAApi5-Signature/commits/master

0.01 Mon Dec 2 00:47:49 JST 2019
- original version
## Tags

https://github.com/bayashi/Amazon-PAApi5-Signature/tags

## Last Release

0.02 Thu Jan 30 02:35:05 JST 2020
- https://github.com/bayashi/Amazon-PAApi5-Signature/compare/0.01...0.02
1 change: 1 addition & 0 deletions MANIFEST.SKIP
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@
^META\.yml$
^MYMETA\.yml$
^MYMETA\.json$
^Amazon-PAApi5-Signature-*

0 comments on commit c51fc6c

Please sign in to comment.