travelynx/.github/workflows/perl.yml
Kumi 8403b138bc
Some checks failed
Perl Tests / perl (5.20) (push) Failing after 56s
Perl Tests / perl (latest) (push) Failing after 49s
Perl Tests / perl (threaded) (push) Failing after 18s
chore(ci): remove redundant runs-on directive
Removed the `runs-on: ubuntu-latest` directive from the GitHub Actions workflow for Perl, as the runner configuration is being standardized elsewhere in the workflow. This helps in reducing duplication and potential errors in CI configuration.
2024-09-18 19:22:41 +02:00

47 lines
1.1 KiB
YAML

name: Perl Tests
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
perl:
strategy:
matrix:
perl-version:
- '5.20'
- '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