Skip to content

Commit

Permalink
add github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasfranck committed Jun 28, 2024
1 parent 96aea67 commit 6e95557
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: test
on: [push, pull_request]
env:
OS_HOST: localhost:9200
OS_USER:
OS_PASS:
OS_INDEX: os-perl-benchmark-index
OS_SSL: 0
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
perl:
[
#"5.38",
#"5.36",
#"5.34",
#"5.32",
#"5.30",
"5.22",
"5.20"
]
name: Perl ${{ matrix.perl }}
steps:
- uses: actions/checkout@v3
- name: Setup perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl }}
- name: Install dependencies
run: cpanm -nq --installdeps --with-develop --with-recommends .
- name: Install Opensearch
uses: ankane/setup-opensearch@v1
with:
opensearch-version: 2
- name: Run test
run: prove -lr t
7 changes: 6 additions & 1 deletion cpanfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ requires 'Moo', '>=1.004006';
requires 'namespace::clean', '>=0.24';
requires 'OpenSearch', '==0.94';

recommends 'Type::Tiny::XS';
recommends 'Type::Tiny::XS';

on 'test' => sub {
requires 'Test::More', '0.98';
requires 'Test::Pod::Coverage';
};

0 comments on commit 6e95557

Please sign in to comment.