Skip to content

Commit

Permalink
add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eserte committed Jan 6, 2024
1 parent 44798e3 commit 1ec1090
Showing 1 changed file with 46 additions and 2 deletions.
48 changes: 46 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,54 @@
name: CI

on:
push:
branches-ignore:
- '*travis*'
- '*appveyor*'
- '*doozer*'
pull_request:
workflow_dispatch:

jobs:
dummy:
create-dist:
runs-on: ubuntu-latest
steps:
- run: echo hello world
- uses: actions/checkout@v4
- name: Install prereqs
run: |
sudo apt-get update -q
sudo apt-get install -qy --no-install-recommends libmodule-build-perl
- name: Create dist
run: |
perl Build.PL
./Build
./Build dist
- uses: actions/upload-artifact@v3
with:
name: dist
path: "*.tar.gz"

test:
name: Test with perl ${{ matrix.perlimage }}
runs-on: ubuntu-latest
container: perl:${{ matrix.perlimage }}
strategy:
matrix:
include:
- perlimage: 5.8.9-threaded-stretch
- perlimage: 5.10.1-buster
- perlimage: 5.12.5-stretch
- perlimage: 5.14.4-stretch
- perlimage: 5.16.3-buster
- perlimage: 5.18.4-buster
- perlimage: 5.22.4-stretch
- perlimage: 5.36.0-slim-bullseye
- perlimage: 5.38.0-slim-bookworm
needs: create-dist
steps:
- uses: actions/download-artifact@v3
with:
name: dist
- name: Test with cpanm
run: |
cpanm --test --verbose *.tar.gz

0 comments on commit 1ec1090

Please sign in to comment.