klitsche/dog

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
    env:
      COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Install PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: 8.0
          coverage: none
      - name: Install dependencies
        uses: ramsey/composer-install@v2
        with:
          composer-options: "--ignore-platform-reqs --prefer-dist --prefer-stable"
      - name: Check style
        run: composer cs