Files
camelia-orm/.gitea/workflows/tests.yml
T
2026-11-15 11:00:58 -03:00

39 lines
1.3 KiB
YAML

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
# 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".
#
# Node.js is installed explicitly: actions/checkout is a JavaScript action, and the
# php:*-cli images ship no node, so checkout failed with
# `exec: "node": executable file not found in $PATH` (exit 127).
jobs:
check:
runs-on: ubuntu-latest
name: PHP 8.4
container: php:8.4-cli
steps:
- name: Install system packages
run: |
apt-get update -qq
apt-get install -y -qq --no-install-recommends git unzip curl ca-certificates nodejs libonig-dev libxml2-dev > /dev/null
docker-php-ext-install -j"$(nproc)" mbstring pdo pdo_mysql > /dev/null
node --version
- 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
- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress
- name: Run gate
run: composer check