Skip to content

Commit dadf321

Browse files
committed
Add lint action
1 parent d0a7e9f commit dadf321

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/lint.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: lint
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
php: [7.2 7.3 7.4]
16+
17+
runs-on: ubuntu-latest
18+
name: PHP@${{ matrix.php }}
19+
20+
steps:
21+
- uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php }}
24+
tools: pecl
25+
extensions: imagick
26+
27+
- uses: actions/checkout@v2
28+
29+
- name: Validate composer.json and composer.lock
30+
run: composer validate
31+
32+
- name: Install dependencies
33+
run: composer install --prefer-dist --no-progress --no-suggest
34+
35+
- name: Lint code
36+
run: composer run-script lint

0 commit comments

Comments
 (0)