From a8391eb1e568d074c4286dc94e516520f1c36f7e Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 15 Mar 2021 00:25:30 +0000 Subject: [PATCH] use our own php-cs-fixer --- .github/workflows/test_and_publish.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_and_publish.yml b/.github/workflows/test_and_publish.yml index 278cc7af..c4fc48a6 100644 --- a/.github/workflows/test_and_publish.yml +++ b/.github/workflows/test_and_publish.yml @@ -14,8 +14,26 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Set Up Cache + uses: actions/cache@v2 + with: + path: | + vendor + key: php-cs-fixer-${{ hashFiles('composer.lock') }} + + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Install PHP dependencies + run: composer update && composer install --prefer-dist --no-progress + + - name: Set up PHP + uses: shivammathur/setup-php@master + with: + php-version: 7.4 + - name: Check format - uses: zalexki/php-cs-fixer-action@master + run: ./vendor/bin/php-cs-fixer --dry-run test: name: PHP ${{ matrix.php }} / DB ${{ matrix.database }}