Skip to content

Commit ecda76c

Browse files
committed
add github workflow
1 parent 52a0dcf commit ecda76c

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- '*travis*'
7+
- '*appveyor*'
8+
- '*doozer*'
9+
pull_request:
10+
11+
jobs:
12+
13+
test_on_host:
14+
name: ${{ matrix.os }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
include:
19+
- os: 'ubuntu-20.04'
20+
- os: 'ubuntu-22.04'
21+
- os: 'windows-latest'
22+
steps:
23+
- uses: actions/checkout@v3
24+
25+
- name: "Build and test (ubuntu)"
26+
run: |
27+
set -e
28+
perl Makefile.PL
29+
HARNESS_TIMER=1 HARNESS_OPTIONS=j4:c make test
30+
if: "!startsWith(matrix.os,'windows-')"
31+
- name: "Build and test (windows)"
32+
run: |
33+
c:\strawberry\perl\bin\perl Makefile.PL
34+
c:\strawberry\c\bin\gmake
35+
c:\strawberry\c\bin\gmake test
36+
if: "startsWith(matrix.os, 'windows-')"
37+
38+
test_in_container:
39+
name: "Test with perl ${{ matrix.perlimage }}"
40+
runs-on: ubuntu-latest
41+
container: perl:${{ matrix.perlimage }}
42+
strategy:
43+
matrix:
44+
include:
45+
- perlimage: 5.8.9-threaded-stretch
46+
- perlimage: 5.10.1-buster
47+
- perlimage: 5.12.5-stretch
48+
- perlimage: 5.14.4-stretch
49+
- perlimage: 5.16.3-buster
50+
- perlimage: 5.18.4-buster
51+
- perlimage: 5.22.4-stretch
52+
- perlimage: 5.36.0-slim-bullseye
53+
steps:
54+
- uses: actions/checkout@v3
55+
- name: Build and test
56+
run: |
57+
set -e
58+
perl Makefile.PL
59+
HARNESS_TIMER=1 HARNESS_OPTIONS=j4:c make test

0 commit comments

Comments
 (0)