-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 951 Bytes
/
unit_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
name: Unit Tests Checks
on:
pull_request:
jobs:
unittests:
strategy:
matrix:
php-version: [ '7.2', '8.0' ]
fail-fast: false
name: PHPUnit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
# test the lowest version, to make sure checks pass on it
php-version: ${{ matrix.php-version }}
extensions: json, mbstring, pdo, curl, pdo_sqlite
coverage: none
- name: Initialise
run: |
sudo composer self-update -q
- name: Install dependencies
run: |
sudo COMPOSER_MEMORY_LIMIT=-1 COMPOSER_PROCESS_TIMEOUT=60 composer update --prefer-dist --no-progress --no-scripts
- name: run PHP Unit
run: ./vendor/bin/phpunit