-
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (44 loc) · 1.09 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
35
36
37
38
39
40
41
42
43
44
45
46
name: Tests
on:
push:
branches:
- main
tags-ignore:
- "**"
pull_request:
branches:
- main
repository_dispatch:
types:
- ci
jobs:
ci:
name: CI
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
php-version:
- "8.1"
- "8.2"
- "8.3"
runs-on: ${{ matrix.os }}
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: php-cs-fixer:v3, composer:v2
coverage: none
- name: Checkout
uses: actions/checkout@v4
- name: Check PHP coding style
if: startsWith(matrix.os, 'ubuntu') && matrix.php-version == '8.2'
run: composer run-script phpcs -- --ansi --no-interaction --dry-run
- name: Install Composer dependencies
run: composer update --optimize-autoloader --no-progress --ansi --no-interaction
- name: Build
run: ./bin/unipoints build
- name: PHPUnit
run: composer run-script test -- --colors=always