-
Notifications
You must be signed in to change notification settings - Fork 18
34 lines (34 loc) · 1.08 KB
/
ci.yaml
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: CI
on:
push:
pull_request:
jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ['ubuntu-latest', 'windows-latest', 'macOS-latest']
php-version: ['8.1', '8.2', '8.3']
name: PHP ${{ matrix.php-version }} Test on ${{ matrix.operating-system }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Cache dependencies
uses: actions/cache@v1
with:
path: /tmp/composer-cache
key: dependencies-composer-${{ hashFiles('composer.json') }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
coverage: xdebug
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction --no-suggest
- name: Install phpcs
run: composer global require squizlabs/php_codesniffer
- name: Install phpmd
run: composer global require phpmd/phpmd
- name: Run the build
run: ./build.sh