Skip to content

Commit d543206

Browse files
committed
Merge branch 'main' into update/scssphp
# Conflicts: # composer.json # composer.lock
2 parents d71a3c6 + ccbb285 commit d543206

File tree

8 files changed

+870
-420
lines changed

8 files changed

+870
-420
lines changed

.github/workflows/php.yml

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,40 @@ 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: Install dependencies
34+
if: steps.composer-cache.outputs.cache-hit != 'true'
35+
run: composer install --prefer-dist --no-progress --no-suggest
36+
37+
- name: Run PHPUnit
38+
run: composer run phpunit
39+
40+
- name: Run PHPStan
41+
run: composer run phpstan

.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

composer.json

Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,47 @@
11
{
2-
"name": "paneon/php-vue-to-twig",
3-
"description": "",
4-
"type": "library",
5-
"license": "MIT",
6-
"authors": [
7-
{
8-
"name": "Alexander Pape",
9-
"email": "[email protected]"
10-
}
11-
],
12-
"require": {
13-
"php": "^7.3|^8.0",
14-
"ext-dom": "*",
15-
"ext-libxml": "*",
16-
"scssphp/scssphp": "1.9",
17-
"squizlabs/php_codesniffer": "^3.3",
18-
"ramsey/uuid": "^3.8"
19-
},
20-
"autoload": {
21-
"psr-4": {
22-
"Paneon\\VueToTwig\\": "src"
23-
}
24-
},
25-
"autoload-dev": {
26-
"psr-4": {
27-
"Paneon\\VueToTwig\\": "src",
28-
"Paneon\\VueToTwig\\Tests\\": "tests"
29-
},
30-
"files": [
31-
"vendor/autoload.php"
32-
]
33-
34-
},
35-
"require-dev": {
36-
"ext-simplexml": "*",
37-
"phpunit/phpunit": "^9",
38-
"monolog/monolog": "^1.24",
39-
"phpstan/phpstan": "^0.12",
40-
"friendsofphp/php-cs-fixer": "^2.16"
41-
},
42-
"scripts": {
43-
"cs:fix": "phpcbf --standard=phpcs.xml",
44-
"cs:check": "phpcs --standard=phpcs.xml --colors -ps",
45-
"phpstan": "@php vendor/bin/phpstan analyse src --level 6",
46-
"phpunit": "@php vendor/phpunit/phpunit/phpunit"
2+
"name": "paneon/php-vue-to-twig",
3+
"description": "",
4+
"type": "library",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Alexander Pape",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"require": {
13+
"php": "^7.3|^8.0",
14+
"ext-dom": "*",
15+
"ext-libxml": "*",
16+
"scssphp/scssphp": "1.9",
17+
"squizlabs/php_codesniffer": "^3.3",
18+
"ramsey/uuid": "^3.8"
19+
},
20+
"autoload": {
21+
"psr-4": {
22+
"Paneon\\VueToTwig\\": "src"
4723
}
24+
},
25+
"autoload-dev": {
26+
"psr-4": {
27+
"Paneon\\VueToTwig\\": "src",
28+
"Paneon\\VueToTwig\\Tests\\": "tests"
29+
},
30+
"files": [
31+
"vendor/autoload.php"
32+
]
33+
},
34+
"require-dev": {
35+
"ext-simplexml": "*",
36+
"phpunit/phpunit": "^9",
37+
"monolog/monolog": "^1.24",
38+
"phpstan/phpstan": "^0.12",
39+
"friendsofphp/php-cs-fixer": "^2.16"
40+
},
41+
"scripts": {
42+
"cs:fix": "phpcbf --standard=phpcs.xml",
43+
"cs:check": "phpcs --standard=phpcs.xml --colors -ps",
44+
"phpstan": "@php vendor/bin/phpstan analyse src --level 6",
45+
"phpunit": "@php vendor/phpunit/phpunit/phpunit"
46+
}
4847
}

0 commit comments

Comments
 (0)