Skip to content

Update Dockerfile to php:8.4-alpine. #149

Update Dockerfile to php:8.4-alpine.

Update Dockerfile to php:8.4-alpine. #149

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ["8.4", "8.3", "8.2", "8.1"]
steps:
- uses: actions/checkout@v4
- name: Create .env
run: touch .env
- name: Set PHP version in .env
run: |
echo "PHP_COMPOSER=${{ matrix.php-version }}" >> .env
echo "PHP_VERSION=${{ matrix.php-version }}" >> .env
- name: Install dependencies (composer update) for PHP
run: sh dock composer update
- name: Run PHPUnit tests for PHP
run: sh dock test