Skip to content

Commit 200410e

Browse files
committed
Add GitHub CI tests
1 parent 8b32b18 commit 200410e

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Test
2+
on:
3+
push: ~
4+
pull_request: ~
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
test:
11+
name: test (${{ matrix.os }})
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
include:
16+
- os: ubuntu-latest
17+
make: make
18+
- os: macos-latest
19+
make: make
20+
- os: windows-latest
21+
make: gmake
22+
23+
runs-on: ${{ matrix.os }}
24+
25+
env:
26+
AUTOMATED_TESTING: 1
27+
28+
steps:
29+
- uses: actions/checkout@v6
30+
- uses: shogo82148/actions-setup-perl@v1
31+
with:
32+
perl-version: latest
33+
distribution: strawberry
34+
- name: Show perl configuration
35+
run: perl -V
36+
- name: Install dependencies
37+
run: cpanm --notest --installdeps .
38+
- name: Run Makefile.PL
39+
run: perl Makefile.PL
40+
- name: Build
41+
run: ${{ matrix.make }}
42+
- name: Run the tests
43+
run: ${{ matrix.make }} test

MANIFEST.SKIP

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
MANIFEST.bak
22
Makefile.old
3+
^\.github/
34
Makefile$
45
README.pod
56
.gitignore

0 commit comments

Comments
 (0)