From bab311d9a8ab18a5be730426b239f8d0ecfd3e83 Mon Sep 17 00:00:00 2001 From: Alexei Pastuchov Date: Tue, 16 Jul 2024 13:57:55 +0200 Subject: [PATCH] Setup Github Actions Workflow --- .github/workflows/main.yml | 42 ++++++++++++++++++++++++++++++++++ .travis.yml | 46 -------------------------------------- 2 files changed, 42 insertions(+), 46 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..817680f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +name: CI +on: + push: + branches: [ "upstream" ] + pull_request: + branches: [ "upstream" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +env: + DEBUG: 1 + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: ["ubuntu-latest"] + perl: ["5.28"] + name: Perl ${{ matrix.perl }} on ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - name: Run integration tests for Perl ${{ matrix.perl }} + uses: shogo82148/actions-setup-perl@v1 + timeout-minutes: 5 + with: + perl-version: ${{ matrix.perl }} + install-modules-with: cpanm + install-modules-args: --with-develop --with-configure + - run: cat /etc/hosts + - run: hostname --ip-address + - run: sudo apt-get update -qq + - run: sudo apt-get install -y gearman-job-server + - run: systemctl status gearmand-job-server + # - run: perl -V + # - run: cpanm --quiet --notest Devel::Cover::Report::Coveralls + # - run: cpanm --quiet --notest --installdeps . + # - run: perl Makefile.PL + # - run: make + # - run: AUTHOR_TESTING=1 PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine prove -b -r -s t + # - run: cover diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3ee5ce7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,46 +0,0 @@ -language: perl -perl: - - "5.28" - - "5.26" - - "5.24" - - "5.22" - - "5.20" - - "5.18" - - "5.16" - - "5.14" - - "5.12" - - "5.10" - -sudo: true - -matrix: - include: - - perl: 5.18 - env: COVERAGE=1 - -before_install: - - sudo apt-get update -qq - - sudo apt-get install -y gearman-job-server - - git clone git://github.com/travis-perl/helpers ~/travis-perl-helpers - - source ~/travis-perl-helpers/init - - build-perl - - perl -V - - build-dist - - cd $BUILD_DIR - -install: - - cpanm --quiet --notest Devel::Cover::Report::Coveralls - - cpanm --quiet --notest --installdeps . - -script: - - perl Makefile.PL - - make - - AUTHOR_TESTING=1 PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine prove -b -r -s t - - cover - -after_success: - - cover -report coveralls - -branches: - only: - - master