Added GitHub based CI for perl
Change-Id: I6356b8eee16e8c89680969207299eff50a8d7e80
diff --git a/.github/workflows/linux-perl.yml b/.github/workflows/linux-perl.yml
new file mode 100644
index 0000000..8a195c4
--- /dev/null
+++ b/.github/workflows/linux-perl.yml
@@ -0,0 +1,33 @@
+name: CI Perl 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'
+ name: Perl ${{ matrix.perl-version }} on Linux
+ container:
+ image: perl:${{ matrix.perl-version }}
+ steps:
+ - uses: actions/checkout@v2
+ - name: perl -V
+ run: perl -V
+ - name: Install dependencies
+ run: |
+ cpanm git://github.com/Akron/Mojolicious-Plugin-Localize.git
+ cpanm git://github.com/Akron/Mojolicious-Plugin-TagHelpers-ContentBlock.git
+ cpanm -n --installdeps .
+ cpanm -n Cpanel::JSON::XS EV
+ - name: Run tests
+ run: prove -lr t/
diff --git a/.github/workflows/windows-perl.yml b/.github/workflows/windows-perl.yml
new file mode 100644
index 0000000..25318d7
--- /dev/null
+++ b/.github/workflows/windows-perl.yml
@@ -0,0 +1,33 @@
+name: CI Perl Windows
+on:
+ push:
+ branches:
+ - '*'
+ tags-ignore:
+ - '*'
+ pull_request:
+jobs:
+ perl:
+ runs-on: windows-latest
+ steps:
+ - name: Set git to use LF
+ run: |
+ git config --global core.autocrlf false
+ git config --global core.eol lf
+ - uses: actions/checkout@v2
+ - name: Set up Perl
+ run: |
+ choco install strawberryperl
+ echo "C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+ - name: perl -V
+ run: perl -V
+ - name: Install Dependencies
+ run: |
+ curl -L https://cpanmin.us > cpanm
+ perl cpanm -n -f Crypt::Random::Source
+ perl cpanm -n -f Mojolicious::Plugin::MailException
+ perl cpanm git://github.com/Akron/Mojolicious-Plugin-Localize.git
+ perl cpanm git://github.com/Akron/Mojolicious-Plugin-TagHelpers-ContentBlock.git
+ perl cpanm --installdeps .
+ - name: Run Tests
+ run: prove -lr t/
diff --git a/.gitignore b/.gitignore
index d1eef95..90ca657 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,6 +38,7 @@
.*
/t/kalamar_user_client.t
!.gitignore
+!.github
!.dockerignore
/npm-debug.log
/package-lock.json
diff --git a/Changes b/Changes
index d2ae25a..902be52 100755
--- a/Changes
+++ b/Changes
@@ -1,3 +1,6 @@
+0.42 2021-03-02
+ - Added GitHub based CI for perl.
+
0.41 2021-03-01
- Introduce CORS headers to the proxy.
- Introduce Content Security Policy.