Fix task used for Cake 5.0 #320
Workflow file for this run
This file contains 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: | |
- 2.x | |
pull_request: | |
branches: | |
- '*' | |
jobs: | |
Docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Dockerfile | |
run: docker build . | |
cs-stan: | |
name: Coding Standard | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
extensions: mbstring, intl | |
tools: cs2pr | |
coverage: none | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Get date part for cache key | |
id: key-date | |
run: echo "::set-output name=date::$(date +'%Y-%m')" | |
- name: Cache composer dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ steps.key-date.outputs.date }}-${{ hashFiles('composer.json') }} | |
- name: Composer install | |
run: composer install | |
- name: Run PHP CodeSniffer | |
run: vendor/bin/phpcs -q --report=checkstyle src/ | cs2pr |