Skip to content

Clarify asset repair commands (#182) #301

Clarify asset repair commands (#182)

Clarify asset repair commands (#182) #301

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches:
- 3.x
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
code-quality:
name: Code Quality
uses: craftcms/.github/.github/workflows/code-quality.yml@v3
with:
node_version: '18'
php_version: '8.3'
jobs: '["ecs", "prettier"]'
compatibility:
name: Compatibility (Craft ${{ matrix.craft }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- craft: '^4.6'
flysystem: '^1.0'
- craft: '^5'
flysystem: '^2.0'
services:
mysql:
image: mysql:8.0
ports:
- 33066:3306
env:
MYSQL_DATABASE: db
MYSQL_USER: db
MYSQL_PASSWORD: db
MYSQL_ROOT_PASSWORD: root
options: >-
--health-cmd="mysqladmin ping -h 127.0.0.1 -udb -pdb"
--health-interval=10s
--health-timeout=5s
--health-retries=10
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none
- name: Resolve dependencies
env:
# Craft 4 currently resolves to Twig 3.19.x, which Composer 2.9 blocks by advisory,
# so disable security blocking for the Craft 4 compatibility matrix only.
COMPOSER_NO_SECURITY_BLOCKING: ${{ matrix.craft == '^4.6' && '1' || '0' }}
run: composer update "craftcms/cms:${{ matrix.craft }}" "craftcms/flysystem:${{ matrix.flysystem }}" --with-all-dependencies --no-interaction --no-progress --prefer-dist --no-audit
- name: Prepare test environment
run: composer test:init
- name: Run PHPStan
run: composer phpstan
- name: Run unit tests
run: composer test