Bump version #75
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: Linux | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - develop | |
| - 'feature/*' | |
| - 'hotfix/*' | |
| - 'release/*' | |
| tags: | |
| - '*' | |
| pull_request: | |
| # Enable manual run | |
| workflow_dispatch: | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.ref }}" | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| name: "Lint on PHP ${{ matrix.php-versions }}" | |
| strategy: | |
| matrix: | |
| php-versions: [ '8.1', '8.4' ] | |
| coverage: [none] | |
| fail-fast: false | |
| steps: | |
| - name: PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php-versions }} | |
| tools: composer | |
| coverage: ${{ matrix.coverage }} | |
| - name: Checkout Galette core | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: galette/galette | |
| path: galette-core | |
| fetch-depth: 1 | |
| ref: develop | |
| - name: Checkout plugin | |
| uses: actions/checkout@v4 | |
| with: | |
| path: galette-core/galette/plugins/plugin-fullcard | |
| - name: Get composer cache directory | |
| id: composer-cache | |
| run: | | |
| echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
| - name: Cache dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
| restore-keys: ${{ runner.os }}-composer- | |
| - name: Install dependencies | |
| run: | | |
| cd galette-core/galette | |
| composer install --ignore-platform-reqs | |
| - name: CS | |
| run: | | |
| cd galette-core/galette/plugins/plugin-fullcard | |
| ../../vendor/bin/phpcs lib/ ./*.php | |
| - name: CS Fixer | |
| if: matrix.php-versions == '8.1' | |
| run: | | |
| cd galette-core/galette/plugins/plugin-fullcard | |
| ../../vendor/bin/php-cs-fixer check --show-progress=dots --verbose --diff | |
| - name: Check missing symbols | |
| run: | | |
| cd galette-core/galette/plugins/plugin-fullcard | |
| composer require maglnet/composer-require-checker -W | |
| vendor/bin/composer-require-checker check --config-file=.composer-require-checker.config.json ../../composer.json | |
| if: matrix.php-versions == '8.4' | |
| - name: PHPStan checks | |
| run: | | |
| cd galette-core/galette/plugins/plugin-fullcard | |
| ../../vendor/bin/phpstan analyze --ansi --memory-limit=2G --no-interaction --no-progress | |
| - name: Headers checks | |
| run: | | |
| cd galette-core/galette/plugins/plugin-fullcard | |
| ../../vendor/bin/docheader --docheader=../../../.docheader check lib ./*.php |