-
Notifications
You must be signed in to change notification settings - Fork 26
34 lines (32 loc) · 1.04 KB
/
tests.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
name: Run Tests
on:
push:
branches:
- master
pull_request:
jobs:
PHPUnit:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php: [8.1, 8.2, 8.3]
steps:
- name: Configure PHP version
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
- uses: actions/checkout@v4
- name: Cache Composer Dependencies
uses: actions/cache@v3
with:
path: vendor/
key: composer-${{ matrix.php }}-${{ hashFiles('composer.*') }}
restore-keys: |
composer-${{ matrix.php }}-${{ github.ref }}
composer-${{ matrix.php }}-
- run: |
composer update --no-interaction --no-scripts --no-progress
composer show
- run: vendor/bin/phpunit