2020-10-01 02:35:21 +02:00
|
|
|
name: "unit tests"
|
|
|
|
|
2021-03-24 09:23:04 +01:00
|
|
|
on:
|
|
|
|
pull_request: ~
|
|
|
|
push: ~
|
2020-10-01 02:35:21 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
unit-tests:
|
|
|
|
name: "unit tests"
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.operating-system }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
php-version:
|
|
|
|
- "7.4"
|
2020-10-07 07:47:35 +02:00
|
|
|
- "8.0"
|
2020-10-01 02:35:21 +02:00
|
|
|
operating-system:
|
2020-10-07 07:58:14 +02:00
|
|
|
- "macos-latest"
|
2020-10-01 02:35:21 +02:00
|
|
|
- "ubuntu-latest"
|
2020-10-07 08:01:25 +02:00
|
|
|
- "windows-latest"
|
2020-10-01 02:35:21 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "checkout"
|
|
|
|
uses: "actions/checkout@v2"
|
|
|
|
|
|
|
|
- name: "installing PHP"
|
|
|
|
uses: "shivammathur/setup-php@v2"
|
|
|
|
with:
|
|
|
|
php-version: "${{ matrix.php-version }}"
|
|
|
|
ini-values: memory_limit=-1
|
|
|
|
tools: composer:v2, cs2pr
|
|
|
|
extensions: bcmath, mbstring, intl, sodium, json
|
|
|
|
|
|
|
|
- name: "caching dependencies"
|
2021-03-28 10:29:25 +02:00
|
|
|
uses: "actions/cache@v2.1.4"
|
2020-10-01 02:35:21 +02:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.composer/cache
|
|
|
|
vendor
|
2020-10-07 08:01:25 +02:00
|
|
|
key: "php-${{ matrix.php-version }}"
|
|
|
|
restore-keys: "php-${{ matrix.php-version }}"
|
2020-10-01 02:35:21 +02:00
|
|
|
|
2020-10-07 07:47:35 +02:00
|
|
|
- name: "installing dependencies"
|
2021-03-27 21:32:45 +01:00
|
|
|
run: |
|
|
|
|
make install-root-dependencies
|
|
|
|
make install-unit-tests-dependencies
|
2020-10-01 02:35:21 +02:00
|
|
|
|
2021-03-27 21:32:45 +01:00
|
|
|
- name: "running unit tests"
|
|
|
|
run: make unit-tests
|