Skip to content

Commit

Permalink
Merge pull request #88 from blueForman/update-testsuite-for-8.1
Browse files Browse the repository at this point in the history
Update testsuite for 8.1
  • Loading branch information
armetiz authored Mar 8, 2022
2 parents 476dfc0 + 0056317 commit 972a5c1
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 8 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and test
on: [push]
jobs:
run_tests:
runs-on: ubuntu-18.04
strategy:
matrix:
php: ["7.2", "7.3", "7.4", "8.0", "8.1.0"]
env: ["^3", "^4", "^5", "^6"]
exclude:
- php: "7.2"
env: "^6"
- php: "7.3"
env: "^6"
- php: "7.4"
env: "^6"
steps:
- uses: actions/checkout@v2

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

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Require dependencies
run: COMPOSER_MEMORY_LIMIT=-1 composer require symfony/console:${{matrix.env}} symfony/framework-bundle:${{matrix.env}} symfony/http-kernel:${{matrix.env}} --prefer-source

- name: Install dependencies
run: COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-source

- name: run tests
run: XDEBUG_MODE=coverage ./bin/phpunit --coverage-text
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
sudo: false

dist: bionic
language: php

php:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1.0"

env:
- SYMFONY_VERSION=3.*
- SYMFONY_VERSION=4.*
- SYMFONY_VERSION=5.*
- SYMFONY_VERSION=6.*

matrix:
exclude:
- php: "7.1"
env: SYMFONY_VERSION=5.*
- php: "7.2"
env: SYMFONY_VERSION=4.*
env: SYMFONY_VERSION=6.*
- php: "7.3"
env: SYMFONY_VERSION=4.*
env: SYMFONY_VERSION=6.*
- php: "7.4"
env: SYMFONY_VERSION=6.*

cache:
directories:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"sort-packages": true
},
"require": {
"php": ">=7.1.0",
"php": ">=7.2.0",
"pda/pheanstalk": "^4",
"psr/log": "^1",
"symfony/console": "^3|^4|^5",
"symfony/framework-bundle": "^3|^4|^5"
},
"require-dev": {
"phpunit/phpunit": "^7|^8"
"phpunit/phpunit": "^8|^9.5"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 972a5c1

Please sign in to comment.