idealo/php-rdkafka-ffi

View on GitHub
.github/workflows/coding-standard.yml

Summary

Maintainability
Test Coverage
name: Coding Standard

on:
  push:
  pull_request:

jobs:

  coding-standard:
    name: Coding Standard
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Install PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: 8.1
          coverage: none
      - name: Get composer cache directory
        id: composer-cache
        run: |
          echo "::set-output name=dir::$(composer config cache-files-dir)"
      - name: Cache composer cache directory
        uses: actions/cache@v4
        with:
          path: ${{ steps.composer-cache.outputs.dir }}
          key: ${{ runner.os }}-8.1-composer-${{ hashFiles('**/composer.json') }}
          restore-keys: ${{ runner.os }}-8.1-composer-
      - name: Install dependencies
        run: composer update --prefer-dist --prefer-stable --no-interaction
      - name: Check style
        run: composer cs