-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 995 Bytes
/
phpunit.yml
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
36
37
38
39
40
41
42
43
44
name: PHPUnit
on: pull_request
jobs:
test:
name: PHPUnit (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: ["8.2"]
steps:
- name: Checkout the code
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Composer cache
id: composer_cache
uses: actions/cache@v4
with:
path: ./vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- name: Install composer
shell: bash
if: steps.composer_cache.outputs.cache-hit != 'true'
run: |
echo 'Install packages'
composer install -n --prefer-dist
- name: Run phpunit
run: composer phpunit