Add GitHub Action based CI test
Change-Id: I4d49df276377b1750c7bfd684f75190c7f5434e6
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
new file mode 100644
index 0000000..a8c1920
--- /dev/null
+++ b/.github/workflows/linux.yml
@@ -0,0 +1,38 @@
+name: CI Linux
+on:
+ push:
+ branches:
+ - '*'
+ tags-ignore:
+ - '*'
+ pull_request:
+jobs:
+ perl:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ perl-version:
+ - '5.20'
+ - '5.22'
+ - '5.30'
+ - '5.32'
+ java: [ 8, 11 ]
+ name: Perl ${{ matrix.perl-version }} and Java ${{ matrix.java }} on Linux
+ container:
+ image: perl:${{ matrix.perl-version }}
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+ java-package: jre
+ - name: perl -V
+ run: perl -V
+ - name: Install dependencies
+ run: cpanm --installdeps .
+ - name: Install
+ run: |
+ perl Makefile.PL
+ make install
+ - name: Run tests
+ run: prove -lr t/
diff --git a/.gitignore b/.gitignore
index b0955d2..e741c16 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,4 +6,5 @@
*~
.*
!.gitignore
-/sandbox
\ No newline at end of file
+!.github
+/sandbox