Skip to content

Commit

Permalink
Merge pull request #19 from elvanto/gh-actions
Browse files Browse the repository at this point in the history
Drop PHP 5.6 support
  • Loading branch information
bensinclair authored Nov 27, 2020
2 parents 7b64216 + ab919ea commit 1a83416
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 20 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Run Tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:

runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
php-versions: [ '7.0', '7.1', '7.2', '7.3', '7.4', '8.0' ]
name: PHP ${{ matrix.php-versions }}

steps:
- uses: actions/checkout@v2
name: Check Out Code

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

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

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run test suite
run: ./vendor/bin/phpunit
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"keywords": ["php-emoji", "emoji"],
"license": "MIT",
"require": {
"php": ">=5.6"
"php": ">=7.0"
},
"require-dev": {
"phpunit/phpunit": "^5.0",
"milesj/emojibase": "6.0.0"
"phpunit/phpunit": "^6.0",
"milesj/emojibase": "6.0.*"
},
"repositories": [
{
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.7/phpunit.xsd"
bootstrap="vendor/autoload.php">
<testsuite>
<directory suffix="Test.php">tests</directory>
Expand Down

0 comments on commit 1a83416

Please sign in to comment.