-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.08 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
47
48
49
50
name: Test
on:
push:
branches:
- main
- master
- develop
- feature/**
jobs:
tests:
name: ${{ matrix.os }} - PHP ${{ matrix.php }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
php: [8.0]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring,intl
coverage: pcov
tools: composer,phpunit,phpstan,phpcs
- name: Install Composer dependencies
run: |
php --version
composer install --quiet --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Run code sniffer
run: |
composer run sniff
- name: Run static analysis
run: |
composer run stan
- name: Run the tests
timeout-minutes: 10
run: |
./vendor/bin/phpunit --version
composer run test-ci