Skip to content

Continuous Integration #175

Continuous Integration

Continuous Integration #175

name: "Continuous Integration"
on:
- push
- pull_request
env:
APP_ENV: test
DATABASE_URL: "mysql://root:root@127.0.0.1:3306/packagist?serverVersion=8.0"
jobs:
tests:
name: "CI"
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
with:
coverage: "none"
extensions: "intl, zip, apcu"
php-version: "8.4"
tools: composer
ini-values: apc.enable_cli=1
- name: "Start MySQL"
run: sudo systemctl start mysql.service
- uses: ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
with:
composer-options: "--ansi --no-interaction --no-progress --prefer-dist"
- name: Start Redis
uses: supercharge/redis-github-action@bc274cb7238cd63a45029db04ee48c07a72609fd # 1.8.1
with:
redis-version: 6
- name: "Setup DB"
run: |
bin/console doctrine:database:create -n
bin/console doctrine:schema:create -n
- name: "Run tests"
run: "composer test"