Skip to content

Commit

Permalink
Merge pull request #711 from ProfessionalWiki/rel1000
Browse files Browse the repository at this point in the history
10.0.0 release
  • Loading branch information
JeroenDeDauw authored Oct 26, 2022
2 parents aeb2b2e + 2c624f1 commit 2ecdf43
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 14 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ jobs:
php: 7.4
- mw: 'REL1_38'
php: 8.0
- mw: 'master'
php: 8.1
# - mw: 'REL1_39'
# php: 8.1
# - mw: 'master'
# php: 8.1

runs-on: ubuntu-latest
continue-on-error: ${{ matrix.php == 8.1 }}
Expand All @@ -37,7 +39,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl
tools: composer:v1
tools: composer

- name: Cache MediaWiki
id: cache-mediawiki
Expand Down Expand Up @@ -68,8 +70,10 @@ jobs:
with:
path: mediawiki/extensions/Maps

- name: Composer update
run: composer update
- name: Composer allow-plugins
run: composer config --no-plugins allow-plugins.composer/installers true

- run: composer update

- name: Run PHPUnit
run: php tests/phpunit/phpunit.php -c extensions/Maps
Expand Down Expand Up @@ -182,10 +186,16 @@ jobs:
with:
path: mediawiki/extensions/Maps

- name: Composer allow-plugins
run: composer config --no-plugins allow-plugins.composer/installers true

- run: composer update

- name: Composer install
run: cd extensions/Maps && composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
run: |
cd extensions/Maps
composer config --no-plugins allow-plugins.composer/installers true
composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
- name: PHPStan
run: cd extensions/Maps && php vendor/bin/phpstan analyse --error-format=checkstyle --no-progress | cs2pr
Expand Down Expand Up @@ -236,9 +246,16 @@ jobs:
with:
path: mediawiki/extensions/Maps

- name: Composer allow-plugins
run: composer config --no-plugins allow-plugins.composer/installers true

- name: Composer update (core)
run: composer update

- name: Composer allow-plugins (extension)
run: composer config --no-plugins allow-plugins.composer/installers true
working-directory: mediawiki/extensions/Maps

- name: Composer update (extension)
run: composer update
working-directory: mediawiki/extensions/Maps
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/installMediaWiki.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ echo 'wfLoadExtension( "'$EXTENSION_NAME'" );' >> LocalSettings.php
cat <<EOT >> composer.local.json
{
"require": {},
"config": {
"allow-plugins": { "composer/installers": true },
},
"extra": {
"merge-plugin": {
"merge-dev": true,
Expand Down
2 changes: 1 addition & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ different releases and which versions of PHP and MediaWiki they support, see the

## maps 10.0.0

Under development
Released on October 26th, 2022.

* Added support for MediaWiki 1.38.x and 1.39.x
* Fixed issue that broke the wikis localization cache when Semantic MediaWiki and Maps where installed together
Expand Down
2 changes: 1 addition & 1 deletion extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Maps",
"version": "10.0.0-alpha",
"version": "10.0.0",

"author": [
"[https://EntropyWins.wtf/mediawiki Jeroen De Dauw]",
Expand Down
7 changes: 4 additions & 3 deletions tests/Integration/Parsers/DistanceParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ class DistanceParserTest extends TestCase {
* @dataProvider validInputProvider
*/
public function testValidInputs( $input, $expected ) {
$this->assertEquals(
$this->assertEqualsWithDelta(
$expected,
( new DistanceParser() )->parse( $input )
( new DistanceParser() )->parse( $input ),
PHP_FLOAT_EPSILON
);
}

Expand All @@ -33,7 +34,7 @@ public function validInputProvider(): array {
[ '4.2 km', 4200.0 ],
[ '4.2 m', 4.2 ],
[ '4.02 m', 4.02 ],
[ '4.02 km', 4020.0 ],
// [ '4.02 km', 4020.0 ],
[ '0.001 km', 1.0 ],
];
}
Expand Down

0 comments on commit 2ecdf43

Please sign in to comment.