From 225ec952fc2cdc5da41b27e62f368faa1fe32182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller=20=28tinita=29?= Date: Tue, 3 Oct 2023 18:05:41 +0200 Subject: [PATCH] ci: Add Github workflow --- .github/workflows/linux.yaml | 76 ++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 .github/workflows/linux.yaml diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml new file mode 100644 index 0000000..86b4c57 --- /dev/null +++ b/.github/workflows/linux.yaml @@ -0,0 +1,76 @@ +name: linux + +on: + push: + branches: [ '*' ] + pull_request: + branches: [ master ] + workflow_dispatch: + branches: [ '*' ] + +jobs: + + perl: + runs-on: ubuntu-latest + strategy: + matrix: + perl-version: + # - '5.10' Test::Deep wants 5.12 + - '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' + + container: + image: perl:${{ matrix.perl-version }} + + steps: + - uses: actions/checkout@v3 + - run: env | sort + - run: perl -V + - name: Install deps + run: > + cpanm --quiet --notest + Encode + Test::Deep + Test::More + Test::YAML + - name: Run Tests + run: prove -lv test/ + + + cover: + runs-on: ubuntu-latest + container: + image: perl:5.38 + + steps: + - uses: actions/checkout@v3 + - run: env | sort + - run: perl -V + + - name: Install deps + run: > + cpanm --quiet --notest --skip-satisfied + Devel::Cover::Report::Coveralls + Encode + Test::Deep + Test::More + Test::YAML + + - name: Run Tests + run: | + set -x + export PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine + prove -l test/ + cover -report coveralls