mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-11 16:49:40 +01:00
2f0601cf1c
Bumps [actions/cache](https://github.com/actions/cache) from v2.1.4 to v2.1.5. - [Release notes](https://github.com/actions/cache/releases) - [Commits](https://github.com/actions/cache/compare/v2.1.4...1a9e2138d905efd099035b49d8b7a3888c653ca8) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
name: "unit tests"
|
|
|
|
on:
|
|
pull_request: ~
|
|
push: ~
|
|
|
|
jobs:
|
|
unit-tests:
|
|
name: "unit tests"
|
|
|
|
runs-on: ${{ matrix.operating-system }}
|
|
|
|
strategy:
|
|
matrix:
|
|
php-version:
|
|
- "7.4"
|
|
- "8.0"
|
|
operating-system:
|
|
- "macos-latest"
|
|
- "ubuntu-latest"
|
|
- "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.1.5"
|
|
with:
|
|
path: |
|
|
~/.composer/cache
|
|
vendor
|
|
key: "php-${{ matrix.php-version }}"
|
|
restore-keys: "php-${{ matrix.php-version }}"
|
|
|
|
- name: "installing dependencies"
|
|
run: |
|
|
make install-root-dependencies
|
|
make install-unit-tests-dependencies
|
|
|
|
- name: "running unit tests"
|
|
run: make unit-tests
|