Files
laravel-php-fpm/.github/workflows/tests.yml
T
jkaninda 7799d2fbc2 Merge pull request #90 from jkaninda/dev
Upgrade images to PHP 8.5 and fix php-fpm not starting as root
2026-10-21 20:53:47 +02:00

32 lines
899 B
YAML

name: Tests
on:
push:
pull_request:
jobs:
integration:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ["8.1", "8.2", "8.3", "8.4", "8.5"]
variant: ["debian", "alpine"]
steps:
- uses: actions/checkout@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.variant == 'alpine' && './src/docker/Dockerfile.alpine' || './src/docker/Dockerfile' }}
load: true
build-args: |
phpVersion=${{ matrix.php }}
tags: laravel-php-fpm:test
cache-from: type=gha,scope=${{ matrix.php }}-${{ matrix.variant }}
- name: Run integration tests
env:
IMAGE: laravel-php-fpm:test
run: ./tests/integration.sh