Repository navigation
More time to start MariaDB 12.3 #1404
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] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| services: | |
| mariadb: | |
| image: mariadb:12.3 | |
| ports: | |
| - 3306:3306 | |
| env: | |
| MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
| MYSQL_DATABASE: artisans | |
| options: --health-cmd="mariadb-admin ping" --health-interval=10s --health-timeout=5s --health-retries=5 | |
| steps: | |
| - name: Install mariadb-client | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install mariadb-client | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 2 | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22' | |
| cache: 'pnpm' | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.4' | |
| coverage: none | |
| tools: cs2pr | |
| extensions: imagick | |
| - uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/composer | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: ${{ runner.os }}-composer- | |
| - name: Setup problem matchers for PHP | |
| run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" | |
| - name: Setup problem matchers for PHPUnit | |
| run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | |
| # Prepare our app | |
| - run: cp config/autoload/local.php.dist config/autoload/local.php | |
| - run: ./bin/build.sh | |
| - run: ./bin/load-test-data.php --no-interaction | |
| # Lint and tests | |
| - run: ./vendor/bin/php-cs-fixer fix --format=checkstyle | cs2pr | |
| - run: ./vendor/bin/phpstan analyse | |
| - run: ./vendor/bin/phpunit | |
| - run: pnpm lint | |
| - run: ./node_modules/.bin/prettier --experimental-cli --check . | |
| - run: ./node_modules/.bin/ng test --progress false --watch=false --browsers ChromeHeadlessCustom |