Files
camelia-orm/.gitea/workflows/tests.yml
T
dgarcia c15015d809
Tests / PHP 8.3 (push) Failing after 10m43s
Tests / PHP 8.4 (push) Failing after 11m18s
ci: use php container image instead of setup-php action
2026-11-15 10:38:44 -03:00

46 lines
1.3 KiB
YAML

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.3', '8.4']
name: PHP ${{ matrix.php }}
# The PHP version comes from the job container image instead of shivammathur/setup-php:
# the runner in this Gitea instance reaches github.com intermittently and setup-php
# failed with "TLS handshake timeout". Fewer external actions, fewer failure modes.
container: php:${{ matrix.php }}-cli
steps:
- name: Install system packages
run: |
apt-get update -qq
apt-get install -y -qq --no-install-recommends git unzip libonig-dev libxml2-dev > /dev/null
docker-php-ext-install -j"$(nproc)" mbstring pdo pdo_mysql > /dev/null
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Composer
run: |
curl -sS https://getcomposer.org/installer -o /tmp/composer-setup.php
php /tmp/composer-setup.php --install-dir=/usr/local/bin --filename=composer --quiet
composer --version
- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress
- name: Run gate
run: composer check