2020-04-06 08:07:07 +00:00
|
|
|
name: Perl Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
perl:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
perl-version:
|
2024-09-18 18:28:24 +00:00
|
|
|
- '5.20-buster'
|
2020-04-06 08:07:07 +00:00
|
|
|
- '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:
|
2024-09-18 18:24:36 +00:00
|
|
|
- name: apt install nodejs
|
|
|
|
run: apt update && apt install -y nodejs
|
2020-04-06 08:07:07 +00:00
|
|
|
- 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
|
2023-04-01 16:10:05 +00:00
|
|
|
run: curl -sL https://raw.githubusercontent.com/skaji/cpm/master/cpm | perl - install -g --show-build-log-on-failure
|
2020-04-06 08:07:07 +00:00
|
|
|
- name: Run Tests
|
|
|
|
run: prove -l t
|