blob: 12a38d04e141f963473aab29e280948356931ecf (
plain)
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: Perl Tests
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
perl:
runs-on: ubuntu-latest
strategy:
matrix:
perl-version:
- '5.30'
- 'latest'
- 'threaded'
container:
image: perl:${{ matrix.perl-version }}
services:
postgres:
image: postgres:11
env:
POSTGRES_USER: travelynx
POSTGRES_PASSWORD: whatever
POSTGRES_DB: travelynx_ci_test
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v2
- name: perl -V
run: perl -V
- name: Setup Repo
run: |
rm -f cpanfile.snapshot
cp .github/travelynx.conf travelynx.conf
- name: Install PostgreSQL Client Library
run: apt install libpq-dev
- name: Install Perl Dependencies
run: curl -sL https://raw.githubusercontent.com/skaji/cpm/master/cpm | perl - install -g --show-build-log-on-failure
- name: Run Tests
run: prove -l t
|