diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..cc94f6fd --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,47 @@ +name: Test + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest ] + + perl: [ + '5.8', + '5.10', '5.12', '5.14', '5.16', '5.18', + '5.20', '5.22', '5.24', '5.26', '5.28', + '5.30', '5.32', '5.34', '5.36', '5.38', + '5.40', + ] + + threads: [ false, true ] + + runs-on: ${{ matrix.os }} + + name: ${{ matrix.perl }}${{ matrix.threads && '-threads' || '' }} + + steps: + - uses: actions/checkout@v4 + + - uses: shogo82148/actions-setup-perl@v1 + with: + multi-thread: ${{ matrix.threads }} + perl-version: ${{ matrix.perl }} + + - run: perl -V + + # TODO It would be nice if we had a cpanfile. + - run: cpanm --notest --skip-satisfied Test::Simple~0.90 + + - run: perl Makefile.PL + + - run: make test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d0b8de45..00000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: perl -perl: - - "5.26" - - "5.24-shrplib" - - "5.24" - - "5.22-shrplib" - - "5.22" - - "5.20-shrplib" - - "5.20-extras" - - "5.20" - - "5.18-shrplib" - - "5.18-extras" - - "5.18" - - "5.16" - - "5.14" - - "5.12" - - "5.10" - - "5.10.0" - - "5.8" - - "5.8.1" -before_install: - - if [ -z "$PERLBREW_PERL" ]; then eval $(curl https://travis-perl.github.io/init) --auto; fi diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index 43c2facd..dd676fc9 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -2,9 +2,9 @@ ^Makefile$ ~$ ^\.aspell\.local\.pws$ -^\.travis\.yml ^\.appveyor\.yml ^\.git +^\.github ^\.gdbinit ^\.DS_Store \.html$ diff --git a/README.md b/README.md index 2ec04a97..4a73cd57 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # DBI - The Perl Database Interface. -[![Build Status](https://secure.travis-ci.org/perl5-dbi/dbi.png)](http://travis-ci.org/perl5-dbi/dbi/) +[![Build Status](https://github.com/perl5-dbi/dbi/workflows/Test/badge.svg)](https://github.com/perl5-dbi/dbi/actions) See [COPYRIGHT](https://metacpan.org/module/DBI#COPYRIGHT) section in DBI.pm for usage and distribution rights.