diff --git a/.distignore b/.distignore index f8e00c8..6794c02 100644 --- a/.distignore +++ b/.distignore @@ -1,23 +1,27 @@ +# Directories +/.circleci +/.git +/.github +/assets +- bin +/helpers + php52/vendor/bin +/tests + vendor/bin -- bin -.circleci + +# Files .distignore -.git .gitignore .phplint.yml -Dockerfile -Gruntfile.js -Makefile build.sh composer.json composer.lock docker-compose.yml -helpers +Dockerfile +Gruntfile.js +Makefile package-lock.json package.json php-lint.sh phpunit.xml.dist -readme.md -tests -assets \ No newline at end of file +readme.md \ No newline at end of file diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..48f62fa --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,31 @@ +name: Linting + +on: + push: + branches: + - develop + - master + pull_request: + branches: + - develop + - master #can remove this if/when `develop` set as default branch + +jobs: + phpcs: + name: PHPCS + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set PHP version + uses: shivammathur/setup-php@v2 + with: + php-version: '7.2' + coverage: none + tools: composer:v1 + - name: composer install + run: composer install + - name: PHPCS check + uses: chekalsky/phpcs-action@v1 + with: + phpcs_bin_path: './vendor/bin/phpcs .' \ No newline at end of file