name: Check & fix styling

on: [ push ]

jobs:
  styling:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v2
        with:
          ref: ${{ github.head_ref }}

      - name: Laravel Pint
        uses: aglipanci/laravel-pint-action@1.0.0
        with:
          testMode: true
