From 086e5ff25a64367acc46cf266581380807373a92 Mon Sep 17 00:00:00 2001 From: Anderson Grudtner Martins Date: Thu, 8 Oct 2020 13:55:06 -0300 Subject: [PATCH] Add the phplint github workflow --- .github/workflows/phplint.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/phplint.yml diff --git a/.github/workflows/phplint.yml b/.github/workflows/phplint.yml new file mode 100644 index 00000000..20fb712e --- /dev/null +++ b/.github/workflows/phplint.yml @@ -0,0 +1,30 @@ +name: PHPLint + +on: [push] + +jobs: + phplint: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v1 + with: + php-version: '7.4' + extensions: intl + + - name: Update the composer.lock file + run: composer update --lock + + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-suggest + + - name: Check syntax errors + run: ./vendor/bin/phplint