Add all command #15
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - 'feature/**' | |
| - 'fix/**' | |
| pull_request: | |
| jobs: | |
| ci: | |
| name: Validate, lint, test, and build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: ['8.3', '8.4'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| tools: composer:v2 | |
| coverage: none | |
| - name: Validate composer.json | |
| run: composer validate --strict | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: vendor | |
| key: composer-${{ runner.os }}-${{ matrix.php }}-${{ hashFiles('composer.lock') }} | |
| - name: Install Composer dependencies | |
| run: composer install --prefer-dist --no-progress | |
| - name: Install Node dependencies | |
| run: npm ci | |
| - name: Lint | |
| run: composer lint | |
| - name: Test | |
| run: composer test | |
| - name: Check i18n text domains | |
| run: composer check-i18n | |
| - name: Build release ZIP | |
| run: composer build | |
| - name: Upload ZIP artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: framework-demo-${{ matrix.php }} | |
| path: dist/*.zip |