-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (26 loc) · 854 Bytes
/
phpunit.yml
File metadata and controls
35 lines (26 loc) · 854 Bytes
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
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Unit tests"
on:
push:
jobs:
phpunit:
name: "Unit tests"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-version:
- "7.4"
- "8.0"
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
coverage: "pcov"
php-version: "${{ matrix.php-version }}"
ini-values: memory_limit=-1
extensions: pdo_sqlite
- uses: ramsey/composer-install@2.1.0
- name: "Tests"
run: "./run-tests --coverage-clover=clover.xml --coverage-text"