Skip to content

Commit 3c8a3cd

Browse files
committed
Add a workflow to build and run tests
1 parent c9c7227 commit 3c8a3cd

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/build.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: '*'
6+
pull_request:
7+
branches: '*'
8+
workflow_dispatch:
9+
10+
jobs:
11+
perl-job:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
# TODO - make customizable via workflow_dispatch inputs
16+
matrix:
17+
perl-version:
18+
- '5.42'
19+
- '5.32'
20+
# - 'latest'
21+
22+
container:
23+
# https://hub.docker.com/r/perldocker/perl-tester
24+
image: perldocker/perl-tester:${{ matrix.perl-version }}
25+
26+
name: Perl ${{ matrix.perl-version }}
27+
steps:
28+
- uses: actions/checkout@v5
29+
30+
- name: Regular tests
31+
run: |
32+
cpanm --installdeps --notest .
33+
perl Makefile.PL
34+
make
35+
make test
36+
37+
- name: Prepare for release tests
38+
run: |
39+
cpanm --installdep .
40+
cpanm --notest Test::CheckManifest Test::Pod::Coverage Pod::Coverage Test::Pod
41+
42+
- name: Release tests
43+
env:
44+
RELEASE_TESTING: 1
45+
run: |
46+
perl Makefile.PL
47+
make
48+
make test

0 commit comments

Comments
 (0)