Skip to content

Commit

Permalink
Merge pull request #18 from andrewmy/add-gh-wf-php8
Browse files Browse the repository at this point in the history
Replace Travis with GitHub Workflow; add PHP 8; drop PHP 7.1, 7.2
  • Loading branch information
makasim authored Jan 21, 2021
2 parents 2029c3b + a7900e3 commit a893c72
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 24 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI
on: [pull_request, push]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['7.3', '7.4', '8.0']
name: PHP ${{ matrix.php }} tests
steps:
- uses: actions/checkout@v2

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
extensions: :xdebug

- run: composer install --prefer-source

- run: vendor/bin/phpunit
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "queue-interop/amqp-interop",
"description": "AMQP interop",
"type": "library",
"license": "MIT",
"minimum-stability": "stable",
"require": {
"php": "^7.1.3",
"queue-interop/queue-interop": "^0.7|^0.8"
"php": "^7.3 | ^8.0",
"queue-interop/queue-interop": "^0.7|^0.8|^0.9"
},
"require-dev": {
"phpunit/phpunit": "~5.4.0"
"phpunit/phpunit": "~9.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit a893c72

Please sign in to comment.