-
Notifications
You must be signed in to change notification settings - Fork 2
executable file
·47 lines (39 loc) · 1.05 KB
/
tests.yaml
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
43
44
45
46
47
name: PHPUnit
env:
PHP_VERSION: 8.3
DATABASE_URL: "/var/test_db.sqlite"
DATABASE_ENGINE: "pdo_sqlite"
on:
pull_request:
branches:
- main
- staging
concurrency:
group: phpunit-tests-${{ github.ref }}-1
cancel-in-progress: true
jobs:
phpunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install dependencies
uses: php-actions/composer@v6
with:
args: --ignore-platform-reqs
php_version: ${{ env.PHP_VERSION }}
- name: Build test db
uses: ./.github/actions/create-test-db
- uses: php-actions/phpunit@v3
name: phpunit
with:
php_extensions: xdebug mbstring xml iconv intl
php_version: ${{ env.PHP_VERSION }}
version: '9.5'
args: --coverage-text --testdox
env:
XDEBUG_MODE: coverage