-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (50 loc) · 1.41 KB
/
linux.yml
File metadata and controls
50 lines (50 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: linux
on: [push, pull_request]
jobs:
perl:
runs-on: ubuntu-latest
services:
mysql:
image: mariadb:10.3
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_USER: mycsa
MYSQL_PASSWORD: mycsa
MYSQL_DATABASE: csa_test
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
ports:
- 3306:3306
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: csa_test
strategy:
matrix:
perl-version:
- '5.16'
- '5.18'
- '5.24'
- '5.30'
container:
image: perl:${{matrix.perl-version}}
steps:
- uses: actions/checkout@v2
- name: perl -V
run: perl -V
- name: Fix ExtUtils::MakeMaker (for Perl 5.16 and 5.18)
run: cpanm -n App::cpanminus ExtUtils::MakeMaker
- name: Install dependencies
run: |
cpanm -n DBI DBD::MariaDB
cpanm -n Test::Pod Test::Pod::Coverage Mojo::SQLite Mojo::mysql Mojo::Pg
cpanm -n .
- name: Run tests
run: prove -lvr
env:
HARNESS_OPTIONS: j3
TEST_FOR: 500
TEST_ONLINE_mariadb: mariadb://mycsa:mycsa@mysql:3306/csa_test
TEST_ONLINE_pg: postgresql://postgres:postgres@postgres:5432/csa_test
TEST_POD: 1
TEST_PUBSUB: 1