Skip to content

Commit a893c72

Browse files
authored
Merge pull request #18 from andrewmy/add-gh-wf-php8
Replace Travis with GitHub Workflow; add PHP 8; drop PHP 7.1, 7.2
2 parents 2029c3b + a7900e3 commit a893c72

3 files changed

Lines changed: 37 additions & 24 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
on: [pull_request, push]
3+
jobs:
4+
tests:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
php: ['7.3', '7.4', '8.0']
9+
name: PHP ${{ matrix.php }} tests
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Get Composer Cache Directory
14+
id: composer-cache
15+
run: |
16+
echo "::set-output name=dir::$(composer config cache-files-dir)"
17+
18+
- uses: actions/cache@v2
19+
with:
20+
path: ${{ steps.composer-cache.outputs.dir }}
21+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
22+
restore-keys: |
23+
${{ runner.os }}-composer-
24+
25+
- uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
coverage: none
29+
extensions: :xdebug
30+
31+
- run: composer install --prefer-source
32+
33+
- run: vendor/bin/phpunit

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"name": "queue-interop/amqp-interop",
3+
"description": "AMQP interop",
34
"type": "library",
45
"license": "MIT",
56
"minimum-stability": "stable",
67
"require": {
7-
"php": "^7.1.3",
8-
"queue-interop/queue-interop": "^0.7|^0.8"
8+
"php": "^7.3 | ^8.0",
9+
"queue-interop/queue-interop": "^0.7|^0.8|^0.9"
910
},
1011
"require-dev": {
11-
"phpunit/phpunit": "~5.4.0"
12+
"phpunit/phpunit": "~9.0"
1213
},
1314
"autoload": {
1415
"psr-4": {

0 commit comments

Comments
 (0)