-
Notifications
You must be signed in to change notification settings - Fork 18
47 lines (40 loc) · 1.05 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
name: Pipeline
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
testsuite:
name: Testes Automatizados
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['7.1', '7.2', '7.3', '7.4']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, openssl, json, curl
- name: checkout
uses: actions/checkout@v2
- name: Set phpunit version
if: matrix.php-version == '7.1'
run: composer require "phpunit/phpunit:^6.0" -W --dev
- name: Composer Install
run: |
composer install --no-progress -o --no-ansi --no-interaction
- name: Check php code style
if: matrix.php-version == '7.4'
run: composer phpcs
- name: Análises estáticas
if: matrix.php-version != '7.1'
run: |
composer stan
- name: Rodando PHPUnit
run: |
composer test