Skip to content

Commit 119ebe0

Browse files
committed
Update composer.lock to PHP8
1 parent f5ace45 commit 119ebe0

File tree

3 files changed

+766
-348
lines changed

3 files changed

+766
-348
lines changed

.github/workflows/php.yml

Lines changed: 37 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,47 @@ name: PHP Composer
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312

1413
steps:
15-
- uses: actions/checkout@v2
16-
17-
- name: Validate composer.json and composer.lock
18-
run: composer validate
19-
20-
- name: Cache Composer packages
21-
id: composer-cache
22-
uses: actions/cache@v2
23-
with:
24-
path: vendor
25-
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
26-
restore-keys: |
27-
${{ runner.os }}-php-
28-
29-
- name: Composer update
30-
run: composer update
31-
32-
- name: Install dependencies
33-
if: steps.composer-cache.outputs.cache-hit != 'true'
34-
run: composer install --prefer-dist --no-progress --no-suggest
35-
36-
- name: Run PHPUnit
37-
run: phpunit
38-
39-
- name: Run PHPStan
40-
uses: docker://oskarstark/phpstan-ga
41-
env:
42-
REQUIRE_DEV: true
43-
with:
44-
args: analyse src/ --level=6
14+
- uses: actions/checkout@v2
15+
16+
- name: Setup PHP 8.0
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: 8.0
20+
21+
- name: Validate composer.json and composer.lock
22+
run: composer validate
23+
24+
- name: Cache Composer packages
25+
id: composer-cache
26+
uses: actions/cache@v2
27+
with:
28+
path: vendor
29+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
30+
restore-keys: |
31+
${{ runner.os }}-php-
32+
33+
- name: Composer update
34+
run: composer update
35+
36+
- name: Install dependencies
37+
if: steps.composer-cache.outputs.cache-hit != 'true'
38+
run: composer install --prefer-dist --no-progress --no-suggest
39+
40+
- name: Run PHPUnit
41+
run: phpunit
42+
43+
- name: Run PHPStan
44+
uses: docker://oskarstark/phpstan-ga
45+
env:
46+
REQUIRE_DEV: true
47+
with:
48+
args: analyse src/ --level=6

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
.php_cs.cache
1111

1212
node_modules
13+
.phpunit.result.cache

0 commit comments

Comments
 (0)