Skip to content

Optimize list.json endpoint and fix set:packages drift by doing a weekly reset #2160

Optimize list.json endpoint and fix set:packages drift by doing a weekly reset

Optimize list.json endpoint and fix set:packages drift by doing a weekly reset #2160

name: "Continuous Integration"
on:
- push
- pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
APP_ENV: test
DATABASE_URL: "mysql://root:root@127.0.0.1:3306/packagist?serverVersion=8.0"
permissions:
contents: read
jobs:
tests:
name: "CI"
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
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"