travelynx/.github/workflows/perl.yml
Kumi d8e9c38ced
All checks were successful
Perl Tests / perl (5.20-buster) (push) Successful in 4m0s
Perl Tests / perl (latest) (push) Successful in 3m34s
Perl Tests / perl (threaded) (push) Successful in 3m21s
fix(ci): add '-y' flag to apt install for non-interactive execution
Included the '-y' flag to the 'apt install libpq-dev' command in the GitHub Actions workflow to ensure it proceeds without manual intervention. This change prevents the workflow from stalling during the package installation step, facilitating smoother automated CI runs.
2024-09-18 20:30:58 +02:00

49 lines
1.2 KiB
YAML

name: Perl Tests
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
perl:
strategy:
matrix:
perl-version:
- '5.20-buster'
- '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:
- name: apt install nodejs
run: apt update && apt install -y nodejs
- 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 -y
- 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