From 8871591cab9b406afe91255a3faee0a7f3fe7214 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 15 Nov 2020 13:29:06 +0000 Subject: [PATCH] check formatting --- .github/workflows/test_and_publish.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_and_publish.yml b/.github/workflows/test_and_publish.yml index f5bce06a..a87ef278 100644 --- a/.github/workflows/test_and_publish.yml +++ b/.github/workflows/test_and_publish.yml @@ -7,6 +7,16 @@ on: - cron: '0 2 * * 0' # Weekly on Sundays at 02:00 jobs: + format: + name: Format + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Check format + uses: zalexki/php-cs-fixer-action@master + test: name: PHP ${{ matrix.php }} / DB ${{ matrix.database }} strategy: @@ -86,7 +96,7 @@ jobs: publish: name: Publish runs-on: ubuntu-latest - needs: test + needs: [format, test] if: github.event_name == 'push' && github.ref == 'refs/heads/master' steps: - uses: actions/checkout@master