-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (46 loc) · 1.29 KB
/
ci.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
51
52
53
54
55
56
57
58
name: CI
on:
pull_request:
paths-ignore:
- '**.md'
- '**.gitignore'
jobs:
php-linter:
runs-on: ubuntu-latest
name: Linter
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: mbstring, dom, fileinfo, mysql
tools: composer:v2
coverage: none
- name: Install PHP dependencies
run: composer update --prefer-stable --ignore-platform-req=php --no-interaction --no-progress
- name: Running linter
run: vendor/bin/php-cs-fixer fix -v --dry-run
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
php: ['8.0','8.1']
dependency-version: [prefer-stable]
name: Tests with PHP ${{ matrix.php }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, dom, fileinfo, mysql
tools: composer:v2
coverage: none
- name: Install PHP dependencies
run: composer install --ignore-platform-req=php --no-interaction --no-progress
- name: Running tests
run: vendor/bin/pest --colors=always