Skip to content

Commit

Permalink
github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
smallsoft-gustavo committed Feb 18, 2022
1 parent 2ac4775 commit 214e9bf
Showing 1 changed file with 32 additions and 36 deletions.
68 changes: 32 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,40 @@
name: Pipeline
on:
push:
branches:
- master
push:
branches:
- master

pull_request:
branches:
- master
pull_request:
branches:
- master

jobs:
testsuite:
name: Testes Automatizados
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['7.4']
testsuite:
name: Testes Automatizados
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ["7.4", "8.0", "8.1"]

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, json
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, json

- name: checkout
uses: actions/checkout@v2

- name: Composer Install
run: |
composer install --no-progress -o --no-ansi --no-interaction
- name: Check php code style
run: |
composer phpcs
- name: checkout
uses: actions/checkout@v2

- name: Análises estáticas
run: |
composer stan
- name: Rodando PHPUnit
run: |
composer test
- name: Composer Install
run: |
composer install --no-progress -o --no-ansi --no-interaction
- name: Check php code style
run: |
composer phpcs
- name: Rodando PHPUnit
run: |
composer test

0 comments on commit 214e9bf

Please sign in to comment.