Skip to content

Commit

Permalink
Added GitHub Actions instead of Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ElGigi committed Sep 6, 2021
1 parent 991609f commit c3fcb97
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 17 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Tests

on:
push: ~
pull_request: ~

jobs:
phpunit:
name: PHPUnit on ${{ matrix.php-versions }} ${{ matrix.composer-flags }}
runs-on: ubuntu-latest
continue-on-error: ${{ !matrix.stable }}
strategy:
matrix:
php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0']
stable: [true]
coverage: [true]
composer-flags: ['']
include:
- php-versions: '8.1'
stable: false
coverage: false
composer-flags: '--ignore-platform-reqs'

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: curl, mbstring, yaml
coverage: xdebug
tools: composer:v2

- run: composer update --no-progress ${{ matrix.composer-flags }}

- run: vendor/bin/phpunit --no-coverage
if: ${{ !matrix.coverage }}

- run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
if: ${{ matrix.coverage }}
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Latest Version](https://img.shields.io/packagist/v/berlioz/config.svg?style=flat-square)](https://github.com/BerliozFramework/Config/releases)
[![Software license](https://img.shields.io/github/license/BerliozFramework/Config.svg?style=flat-square)](https://github.com/BerliozFramework/Config/blob/1.x/LICENSE)
[![Build Status](https://img.shields.io/travis/com/BerliozFramework/Config/1.x.svg?style=flat-square)](https://travis-ci.com/BerliozFramework/Config)
[![Build Status](https://img.shields.io/github/workflow/status/BerliozFramework/Config/Tests/1.x.svg?style=flat-square)](https://github.com/BerliozFramework/Config/actions/workflows/tests.yml?query=branch%3A1.x)
[![Quality Grade](https://img.shields.io/codacy/grade/f290647a1f5143ec8299ecea9b83d6b1/1.x.svg?style=flat-square)](https://www.codacy.com/manual/BerliozFramework/Config)
[![Total Downloads](https://img.shields.io/packagist/dt/berlioz/config.svg?style=flat-square)](https://packagist.org/packages/berlioz/config)

Expand Down

0 comments on commit c3fcb97

Please sign in to comment.