diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-06-23 14:37:52 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-06-23 14:37:52 +0300 |
commit | 8863b4fff9bb1badb35ea24ccaff32be1c1a65de (patch) | |
tree | feb07f8e1489de98be52b00e6a372efbf92e2130 /.github | |
parent | f43ce8afbd4039d5d7c36ece38118105a1d38922 (diff) |
Run php linter on github actions
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/lint.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..97c5c60e --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,36 @@ +name: Lint +on: pull_request + +jobs: + php-linters: + runs-on: ubuntu-latest + strategy: + matrix: + php-versions: ['7.0', '7.1', '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: composer run lint + + node-linters: + runs-on: ubuntu-latest + name: ESLint + steps: + - uses: actions/checkout@master + - name: Set up Node + uses: actions/setup-node@v1 + with: + node-version: 12.x + - name: npm install + run: npm ci + - name: eslint + run: npm run lint + env: + CI: true |