From d84bfdb084e5ade174c697aea4ddb5f6d6c5ff63 Mon Sep 17 00:00:00 2001 From: Toon Verwerft Date: Fri, 27 Nov 2020 11:06:10 +0100 Subject: [PATCH] Add PHP80 compatibility --- .github/ISSUE_TEMPLATE/Bug.md | 34 ++++++++++++ .github/ISSUE_TEMPLATE/Feature_Request.md | 18 +++++++ .github/ISSUE_TEMPLATE/Support_Question.md | 15 ++++++ .github/PULL_REQUEST_TEMPLATE.md | 11 ++++ .github/workflows/grumphp.yaml | 53 +++++++++++++++++++ .travis.yml | 33 ------------ composer.json | 11 ++-- grumphp.yml.dist | 12 ++--- .../JsonApiProblemExceptionListenerTest.php | 3 ++ .../Exception/ApiProblemHttpExceptionTest.php | 3 ++ .../ApiProblemExceptionTransformerTest.php | 3 ++ test/Transformer/ChainTest.php | 3 ++ 12 files changed, 152 insertions(+), 47 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/Bug.md create mode 100644 .github/ISSUE_TEMPLATE/Feature_Request.md create mode 100644 .github/ISSUE_TEMPLATE/Support_Question.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/workflows/grumphp.yaml delete mode 100644 .travis.yml diff --git a/.github/ISSUE_TEMPLATE/Bug.md b/.github/ISSUE_TEMPLATE/Bug.md new file mode 100644 index 0000000..2e7d29c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/Bug.md @@ -0,0 +1,34 @@ +--- +name: 🐞 Bug Report +about: Something is broken? 🔨 +--- + +### Bug Report + + + +| Q | A +|------------ | ------ +| BC Break | yes/no +| Version | x.y.z + +#### Summary + + + +#### Current behaviour + + + +#### How to reproduce + + + +#### Expected behaviour + + + diff --git a/.github/ISSUE_TEMPLATE/Feature_Request.md b/.github/ISSUE_TEMPLATE/Feature_Request.md new file mode 100644 index 0000000..2620581 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/Feature_Request.md @@ -0,0 +1,18 @@ +--- +name: 🎉 Feature Request +about: You have a neat idea that should be implemented? 🎩 +--- + +### Feature Request + + + +| Q | A +|------------ | ------ +| New Feature | yes +| RFC | yes/no +| BC Break | yes/no + +#### Summary + + diff --git a/.github/ISSUE_TEMPLATE/Support_Question.md b/.github/ISSUE_TEMPLATE/Support_Question.md new file mode 100644 index 0000000..813fb01 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/Support_Question.md @@ -0,0 +1,15 @@ +--- +name: ❓ Support Question +about: Have a problem that you can't figure out? 🤔 +--- + + + +| Q | A +|------------ | ----- +| Version | x.y.z + + +### Support Question + + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..d88b155 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,11 @@ + + +| Q | A +|------------- | ----------- +| Type | bug/feature/improvement +| BC Break | yes/no +| Fixed issues | + +#### Summary + + diff --git a/.github/workflows/grumphp.yaml b/.github/workflows/grumphp.yaml new file mode 100644 index 0000000..b99ffd2 --- /dev/null +++ b/.github/workflows/grumphp.yaml @@ -0,0 +1,53 @@ +name: GrumPHP + +on: [push, pull_request] +jobs: + run: + runs-on: ${{ matrix.operating-system }} + strategy: + matrix: + operating-system: [ubuntu-latest] + php-versions: ['7.3', '7.4', '8.0'] + composer-options: ['', '--prefer-lowest'] + fail-fast: false + name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }} with ${{ matrix.composer-options }} + steps: + - name: Checkout + uses: actions/checkout@master + - name: Install PHP + uses: shivammathur/setup-php@master + with: + php-version: ${{ matrix.php-versions }} + tools: 'composer:v2' + extensions: pcov, mbstring, posix + - name: Check Versions + run: | + php -v + php -m + composer --version + - name: Get composer cache directory + id: composercache + run: echo "::set-output name=dir::$(composer config cache-files-dir)" + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ${{ steps.composercache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} + restore-keys: ${{ runner.os }}-composer- + - name: Install dependencies