diff options
author | Joas Schilling <coding@schilljs.com> | 2019-12-05 23:25:18 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-12-06 00:13:50 +0300 |
commit | c68fb364e67ce977fd7d135b6a61168c644608a6 (patch) | |
tree | 3b0ad75959a0569ce020ff917089fb6273f39f99 /.github | |
parent | d58a9f102ca2e183cecacb1e5459cb82f85be4e6 (diff) |
Try linting via github actions
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..19eaabf70 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,21 @@ +name: Lint + +on: [push] + +jobs: + php-linters: + runs-on: ubuntu-latest + strategy: + matrix: + php-versions: ['7.2', '7.3', '7.4'] + name: php${{ matrix.php-versions }} lint + steps: + - name: Checkout + uses: actions/checkout@master + - name: Set up php${{ matrix.php-versions }} + uses: shivammathur/setup-php@master + with: + php-version: ${{ matrix.php-versions }} + coverage: none + - name: Lint + run: "find . -name \\*.php -not -path './vendor/*' -exec php -l \"{}\" \\;" |