Skip to content

Add safety cap to ComicVine issue pagination #14

Add safety cap to ComicVine issue pagination

Add safety cap to ComicVine issue pagination #14

Workflow file for this run

name: Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
laravel-tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17-alpine
env:
POSTGRES_DB: teal_test
POSTGRES_USER: teal
POSTGRES_PASSWORD: password
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
extensions: mbstring, xml, ctype, iconv, intl, pdo_pgsql, gd, pcntl, posix
coverage: none
- uses: actions/checkout@v4
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Generate key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Install Frontend Dependencies
run: npm install
- name: Build Frontend Assets
run: npm run build
- name: Execute migrations
env:
DB_CONNECTION: pgsql
DB_HOST: 127.0.0.1
DB_PORT: 5432
DB_DATABASE: teal_test
DB_USERNAME: teal
DB_PASSWORD: password
run: php artisan migrate --force
- name: Execute tests (Unit and Feature tests) via Pest
env:
DB_CONNECTION: pgsql
DB_HOST: 127.0.0.1
DB_PORT: 5432
DB_DATABASE: teal_test
DB_USERNAME: teal
DB_PASSWORD: password
run: php artisan test