Skip to content

Commit 8ee95b8

Browse files
authored
Merge pull request #80 from leviy/master_support_php8.0
Support PHP8.0 and remove deprecated dependencies
2 parents dd12750 + f90b6cf commit 8ee95b8

File tree

4 files changed

+638
-370
lines changed

4 files changed

+638
-370
lines changed

Diff for: .github/workflows/test.yaml

+35-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ env:
55
COMPOSER_AUTH: ${{ secrets.COMPOSER_GITHUB_AUTH }}
66

77
jobs:
8-
test:
8+
test_php7-3:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: checkout
@@ -39,3 +39,37 @@ jobs:
3939
git config --global user.name "github-actions"
4040
git config --global user.email "[email protected]"
4141
make integration-tests
42+
test_php8:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: checkout
46+
uses: actions/checkout@v2
47+
48+
- name: Setup PHP with Composer v1
49+
uses: shivammathur/setup-php@v2
50+
with:
51+
php-version: '8.0'
52+
tools: composer:v1
53+
54+
- name: Get Composer Cache Directory
55+
id: composer-cache
56+
run: |
57+
echo "::set-output name=dir::$(composer config cache-files-dir)"
58+
- uses: actions/cache@v2
59+
with:
60+
path: ${{ steps.composer-cache.outputs.dir }}
61+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
62+
restore-keys: |
63+
${{ runner.os }}-composer-
64+
65+
- name: Composer Install
66+
run: composer install --no-interaction --no-progress --no-ansi
67+
68+
- name: Test
69+
run: make static-analysis unit-tests acceptance-tests coding-standards
70+
71+
- name: Integration tests
72+
run: |
73+
git config --global user.name "github-actions"
74+
git config --global user.email "[email protected]"
75+
make integration-tests

Diff for: Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ bin/local-security-checker:
4747
chmod a+x bin/local-security-checker
4848

4949
bin/box.phar:
50-
curl -LS https://github.com/humbug/box/releases/download/3.8.4/box.phar -o bin/box.phar
50+
curl -LS https://github.com/humbug/box/releases/download/3.14.0/box.phar -o bin/box.phar
5151
chmod a+x bin/box.phar

Diff for: composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Command line tool for releasing new versions of a project",
55
"license": "MIT",
66
"require": {
7-
"php": "^7.3",
7+
"php": "^7.3||^8.0",
88
"beberlei/assert": "^3.2",
99
"guzzlehttp/guzzle": "^6.3",
1010
"padraic/phar-updater": "^1.0",
@@ -18,7 +18,7 @@
1818
"leviy/coding-standard": "^4.0",
1919
"mockery/mockery": "^1.1",
2020
"phpstan/phpstan": "^0.12.14",
21-
"phpunit/phpunit": "^8.5",
21+
"phpunit/phpunit": "^9.0",
2222
"symfony/process": "^5.0"
2323
},
2424
"config": {

0 commit comments

Comments
 (0)