-
-
Notifications
You must be signed in to change notification settings - Fork 24
42 lines (36 loc) · 1001 Bytes
/
build.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
42
name: Run tests on branch commit
on:
push:
branches:
- main
- develop
- 2.x
jobs:
testing:
runs-on: ubuntu-latest
name: Run unit tests
strategy:
matrix:
php: [ "8.1", "8.2", "8.3" ]
phpunit: [ "9.5.10" ]
steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v6
- name: Setup PHP runtime
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: "none"
- name: Lint PHP files
run: |
curl -Ls https://github.com/overtrue/phplint/releases/latest/download/phplint.phar -o /usr/local/bin/phplint
chmod +x /usr/local/bin/phplint
/usr/local/bin/phplint -vvv --no-cache
- name: PHPUnit test
uses: php-actions/phpunit@v2
with:
php_version: ${{ matrix.php }}
version: ${{ matrix.phpunit }}
php_extensions: ldap mbstring
configuration: phpunit.xml
args: --coverage-text --verbose