-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 1.02 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: tests
on: [push, pull_request]
jobs:
lint:
name: Source code linting
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
-
name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
extensions: intl, mbstring, pdo_sqlite
-
name: Validate composer.json
run: composer validate
-
name: Cache composer dependencies
uses: actions/cache@v3
with:
path: ~/.composer/cache
key: composer
-
name: Install composer dependencies
run: composer install --prefer-dist --no-progress --no-suggest
-
name: PHP linting
run: composer lint:php
-
name: Editorconfig linting
run: composer lint:editorconfig