Skip to content
Permalink
Browse files

action!

  • Loading branch information
rodolfoberrios committed Feb 9, 2020
1 parent c1c1b99 commit 9f0c9a12b21bfb2fdc2c973763fc41397d1fd63a
Showing with 45 additions and 2 deletions.
  1. +43 −0 .github/workflows/CI.yml
  2. +2 −2 chevere.ini
@@ -0,0 +1,43 @@
name: CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP Action
uses: shivammathur/setup-php@1.8.2
with:
php-version: 7.4
extensions: opcache, mbstring
ini-values: opcache.enable_cli = 1, opcache.enable = 1
coverage: pcov

- name: Validate composer.json and composer.lock
run: composer validate

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest --classmap-authoritative

- name: Cache
uses: actions/cache@v1.1.2
with:
path: ~/.composer/cache
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Run tests with phpunit
run: vendor/bin/phpunit --coverage-clover=build/coverage/clover.xml

- name: Send code coverage report to Scrutinizer-CI
run: |
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover build/coverage/clover.xml
- name: Send code coverage report to Codecov.io
run: bash <(curl -s https://codecov.io/bash) || true
@@ -1,2 +1,2 @@
opcache.enable_cli = 1
opcache.enable = 1
opcache.enable_cli=1
opcache.enable=1

0 comments on commit 9f0c9a1

Please sign in to comment.
You can’t perform that action at this time.