summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2020-01-29 17:27:21 +0100
committerGitHub <noreply@github.com>2020-01-29 17:27:21 +0100
commite8d27bcff639e3431cfeb008b754b436840c26d7 (patch)
tree49954da17d1942595053cf2c2814394f474f8933 /.github
parent7fc69a37fbfec333a70b96591e163d6dea6b456e (diff)
Create lint.yml
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/lint.yml36
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..3e50644f
--- /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.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