-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 831 Bytes
/
php.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: PHP Composer
on: [push, pull_request]
jobs:
build:
name: Run tests on ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.1', '8.2' ]
steps:
- name: Checkout
uses: actions/checkout@v3
# Docs: https://github.com/shivammathur/setup-php
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: psalm
- name: Setup problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install Composer dependencies
run: composer install --no-progress
- name: Run Psalm
run: psalm --output-format=github
if: ${{ matrix.php == '8.2' }}
- name: Run PHPUnit
run: vendor/bin/phpunit