Skip to content

Commit 5b1fadf

Browse files
authored
Add codequality.yml for GitHub Actions.
1 parent 0584e6b commit 5b1fadf

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/codequality.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: codequality
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
php: [7.3.9]
17+
18+
name: PHP-${{ matrix.php }}
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Cache PHP dependencies
25+
uses: actions/cache@v1
26+
with:
27+
path: vendor
28+
key: ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}
29+
30+
- name: Setup PHP
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: ${{ matrix.php }}
34+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
35+
coverage: none
36+
37+
- name: Validate Composer
38+
run: composer validate --strict
39+
40+
- name: Install PHP dependencies
41+
run: composer install --no-interaction --no-suggest
42+
43+
- name: Run our Linter and PHPStan
44+
run: composer test

0 commit comments

Comments
 (0)