You can't find me!!! π #3
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
# yamllint disable-line rule:document-start | |
name: CI | |
# yamllint disable-line rule:truthy | |
on: [push] | |
jobs: | |
php: | |
name: PHP ${{ matrix.php }} | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
strategy: | |
matrix: | |
php: ['8.1'] | |
steps: | |
- name: Checkout the project | |
uses: actions/checkout@v3 | |
- name: Setup the PHP ${{ matrix.php }} environment on ${{ runner.os }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> "${GITHUB_OUTPUT}" | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
# yamllint disable-line rule:line-length | |
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer- | |
- name: Install Composer dependencies | |
# yamllint disable-line rule:line-length | |
run: composer install --no-progress --prefer-dist --optimize-autoloader --no-suggest | |
- name: Execute the PHP lint script | |
run: composer run-script style:check |