45 lines
1.2 KiB
YAML
45 lines
1.2 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 libxml2-dev > /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
|