Skip to content

Commit 3d20d01

Browse files
committed
Merge branch 'upstream_master' into catchup/import_getMediaQuery
2 parents dc18ca4 + eeece76 commit 3d20d01

File tree

130 files changed

+5203
-2643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

130 files changed

+5203
-2643
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# top-most EditorConfig file
22
root = true
33

4-
# Unix-style newlines with a newline ending every file, and with same defaults
4+
# Unix-style newlines with a newline ending every file, and with sane defaults
55
[*]
66
charset = utf-8
77
end_of_line = lf

.gitattributes

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
/.github/ export-ignore
44
/.gitignore export-ignore
55
/.phive/ export-ignore
6-
/Doxyfile export-ignore
7-
/phpcs.xml export-ignore
8-
/phpstan-baseline.neon export-ignore
9-
/phpstan.neon.dist export-ignore
6+
/bin/ export-ignore
7+
/config/ export-ignore
108
/phpunit.xml export-ignore
11-
/tests export-ignore
9+
/tests/ export-ignore

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2+
3+
version: 2
4+
updates:
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "daily"
9+
10+
- package-ecosystem: "composer"
11+
directory: "/"
12+
schedule:
13+
interval: "daily"
14+
allow:
15+
- dependency-type: "development"
16+
versioning-strategy: "increase"

.github/workflows/ci.yml

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ name: CI
1111
jobs:
1212
php-lint:
1313
name: PHP Lint
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-22.04
1515
strategy:
1616
matrix:
17-
php-version: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0' ]
17+
php-version: [ '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
1818

1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v2
21+
uses: actions/checkout@v3
2222

2323
- name: Install PHP
2424
uses: shivammathur/setup-php@v2
@@ -27,12 +27,12 @@ jobs:
2727
coverage: none
2828

2929
- name: PHP Lint
30-
run: find lib tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
30+
run: find src tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l
3131

3232
unit-tests:
3333
name: Unit tests
3434

35-
runs-on: ubuntu-20.04
35+
runs-on: ubuntu-22.04
3636

3737
needs: [ php-lint ]
3838

@@ -42,12 +42,12 @@ jobs:
4242
php-version: [ '5.6', '7.0', '7.1', '7.2', '7.3' ]
4343
coverage: [ 'none' ]
4444
include:
45-
- php-version: 7.4
45+
- php-version: '7.4'
4646
coverage: xdebug
4747

4848
steps:
4949
- name: Checkout
50-
uses: actions/checkout@v2
50+
uses: actions/checkout@v3
5151

5252
- name: Install PHP
5353
uses: shivammathur/setup-php@v2
@@ -57,7 +57,7 @@ jobs:
5757
coverage: "${{ matrix.coverage }}"
5858

5959
- name: Cache dependencies installed with composer
60-
uses: actions/cache@v1
60+
uses: actions/cache@v3
6161
with:
6262
path: ~/.cache/composer
6363
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
@@ -79,26 +79,37 @@ jobs:
7979
run: |
8080
./vendor/bin/codacycoverage clover build/coverage/xml
8181
82-
phpstan:
83-
name: PHPStan
82+
static-analysis:
83+
name: Static Analysis
8484

85-
runs-on: ubuntu-20.04
85+
runs-on: ubuntu-22.04
8686

8787
needs: [ php-lint ]
8888

89+
strategy:
90+
fail-fast: false
91+
matrix:
92+
include:
93+
- command: sniffer
94+
php-version: '7.4'
95+
- command: fixer
96+
php-version: '7.4'
97+
- command: stan
98+
php-version: '7.4'
99+
89100
steps:
90101
- name: Checkout
91-
uses: actions/checkout@v2
102+
uses: actions/checkout@v3
92103

93104
- name: Install PHP
94105
uses: shivammathur/setup-php@v2
95106
with:
96-
php-version: 7.4
107+
php-version: ${{ matrix.php-version }}
97108
tools: "composer:v2, phive"
98109
coverage: none
99110

100111
- name: Cache dependencies installed with composer
101-
uses: actions/cache@v1
112+
uses: actions/cache@v3
102113
with:
103114
path: ~/.cache/composer
104115
key: php${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
@@ -112,7 +123,7 @@ jobs:
112123
113124
- name: Install development tools
114125
run: |
115-
echo y | phive --no-progress update phpstan;
126+
phive --no-progress install --trust-gpg-keys BBAB5DF0A0D6672989CF1869E82B2FB314E9906E,A972B9ABB95D0B760B51442231C7E470E2138192,D32680D5957DC7116BE29C14CF1A108D0E7AE720
116127
117-
- name: Run PHPStan
118-
run: "composer ci:php:stan"
128+
- name: Run Command
129+
run: composer ci:php:${{ matrix.command }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/.phive/*
2+
/.php-cs-fixer.cache
23
/.php_cs.cache
34
/composer.lock
45
/phpstan.neon

.phive/phars.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="phpcbf" version="^3.6.0" location="./.phive/phpcbf.phar" copy="false" installed="3.6.0"/>
4-
<phar name="phpcs" version="^3.6.0" location="./.phive/phpcs.phar" copy="false" installed="3.6.0"/>
5-
<phar name="phpstan" version="^0.12.88" installed="0.12.88" location="./.phive/phpstan.phar" copy="false"/>
3+
<phar name="php-cs-fixer" version="^3.9.4" installed="3.9.4" location="./.phive/php-cs-fixer.phar" copy="false"/>
4+
<phar name="phpcbf" version="^3.7.1" installed="3.7.1" location="./.phive/phpcbf.phar" copy="false"/>
5+
<phar name="phpcs" version="^3.7.1" installed="3.7.1" location="./.phive/phpcs.phar" copy="false"/>
6+
<phar name="phpstan" version="^1.8.1" installed="1.8.1" location="./.phive/phpstan.phar" copy="false"/>
67
</phive>

0 commit comments

Comments
 (0)