Skip to content

Commit

Permalink
(tests) Update software used when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardspec committed Sep 16, 2024
1 parent e2f4f38 commit 08cd0b6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 17 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ jobs:

env:
branch: ${{ matrix.branch }}
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
services:
memcached:
image: memcached:latest
ports:
- 11211:11211
options: --health-cmd "timeout 5 bash -c 'cat < /dev/null > /dev/tcp/127.0.0.1/11211'" --health-interval 10s --health-timeout 5s --health-retries 5
mariadb:
image: mariadb:10
image: mariadb
env:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
buildcache
Expand Down Expand Up @@ -61,14 +61,14 @@ jobs:
# PHP linters: phpcs, parallel-lint, etc.
linter:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: '8.1'
tools: composer
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.composer/cache
key: buildcache-linter
Expand All @@ -77,17 +77,17 @@ jobs:

# Phan (PHP static analyzer)
phan:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
branch: REL1_39
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: '8.1'
extensions: ast
tools: composer
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.composer/cache
Expand Down
10 changes: 7 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"require-dev": {

"php-parallel-lint/php-parallel-lint": "1.3.2",
"php-parallel-lint/php-console-highlighter": "1.0.0",
"mediawiki/minus-x": "1.1.1",
"mediawiki/mediawiki-codesniffer": "39.0.0",
"mediawiki/mediawiki-phan-config": "0.11.0"
"mediawiki/mediawiki-codesniffer": "44.0.0",
"mediawiki/mediawiki-phan-config": "0.14.0"
},
"scripts": {
"test": [
Expand All @@ -17,5 +16,10 @@
"minus-x fix .",
"phpcbf"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
2 changes: 1 addition & 1 deletion tests/phpunit/EventCalendarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ public function dataProvider() {
[
'title' => 'Test Event 2',
'start' => '2022-05-10',
'end' => '2022-04-15', // Not increased by +1 day (because of excludeLastDay=1).
'end' => '2022-04-15', // Not increased by +1 day (because of excludeLastDay=1).
'url' => '/wiki/2022/05/10:2022/04/15_Test_Event_2'
],
[
Expand Down

0 comments on commit 08cd0b6

Please sign in to comment.