Skip to content

Commit 241dc81

Browse files
author
Matias Melograno
committed
merged with gha
2 parents 46c1f13 + de009c3 commit 241dc81

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
jobs:
11+
build:
12+
name: Build
13+
runs-on: ubuntu-latest
14+
services:
15+
redis:
16+
image: redis
17+
ports:
18+
- 6379:6379
19+
strategy:
20+
matrix:
21+
php-versions: ['7.3', '8.0']
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v2
25+
26+
- name: Setup PHP
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php-versions }}
30+
extensions: mbstring, intl
31+
ini-values: post_max_size=256M, max_execution_time=180
32+
coverage: xdebug
33+
34+
- name: Install dependencies
35+
run: |
36+
composer install --prefer-dist
37+
composer update
38+
composer dumpautoload
39+
40+
- name: script
41+
run: |
42+
vendor/bin/phpcs --ignore=functions.php --standard=PSR2 src/
43+
vendor/bin/phpunit -c phpunit.xml.dist -v --testsuite integration

0 commit comments

Comments
 (0)