endtoend-test-psl/.github/workflows/unit-tests.yml

51 lines
1.1 KiB
YAML
Raw Normal View History

name: "unit tests"
on:
pull_request: ~
push: ~
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"
operating-system:
2020-10-07 07:58:14 +02:00
- "macos-latest"
- "ubuntu-latest"
2020-10-07 08:01:25 +02:00
- "windows-latest"
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"
uses: "actions/cache@v2"
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-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
2021-03-27 21:32:45 +01:00
- name: "running unit tests"
run: make unit-tests