WIP fix CI #1187
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: main | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| services: | |
| mariadb: | |
| image: mariadb:10.6 | |
| ports: | |
| - 3306:3306 | |
| env: | |
| MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
| MYSQL_DATABASE: ichtus | |
| options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=5 | |
| steps: | |
| - name: Install mariadb-client | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install mariadb-client | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.2' | |
| coverage: pcov | |
| tools: cs2pr | |
| extensions: imagick | |
| - uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/composer | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: ${{ runner.os }}-composer- | |
| # Prepare our app | |
| - run: mysql --protocol=tcp --user=root --execute='SET GLOBAL sql_mode = "";' | |
| - run: cp config/autoload/local.php.dist config/autoload/local.php | |
| - run: ./bin/build.sh | |
| - run: ./bin/load-test-data.php --no-interaction | |
| - run: ./vendor/bin/phpunit --filter testLoginFailedOften |