Skip to content

Commit

Permalink
Upgrade github actions to node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
mstilkerich committed Mar 23, 2024
1 parent c6e62c2 commit 3a7b796
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Checkout rcmcarddav
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up CI environment
uses: ./.github/actions/setup
with:
Expand All @@ -45,15 +45,15 @@ jobs:

steps:
- name: Checkout rcmcarddav
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up CI environment
uses: ./.github/actions/setup
with:
php-version: ${{ matrix.php-version }}
- name: Run unit tests
run: make unittests
- name: Upload unit test coverage reports to codecov.io
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: testreports/unit/clover.xml
flags: unittests
Expand All @@ -67,13 +67,13 @@ jobs:

steps:
- name: Checkout rcmcarddav
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up CI environment
uses: ./.github/actions/setup
- name: Database interoperability tests for SQLite3
run: make tests-sqlite3
- name: Upload DB interoperability test coverage reports to codecov.io
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: testreports/dbinterop-sqlite3/clover.xml
flags: dbinterop-sqlite3
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:

steps:
- name: Checkout rcmcarddav
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up CI environment
uses: ./.github/actions/setup
- name: Set MySQL settings
Expand All @@ -128,7 +128,7 @@ jobs:
- name: Database interoperability tests for MySQL
run: make tests-mysql
- name: Upload DB interoperability test coverage reports to codecov.io
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: testreports/dbinterop-mysql/clover.xml
flags: dbinterop-mysql
Expand Down Expand Up @@ -164,13 +164,13 @@ jobs:

steps:
- name: Checkout rcmcarddav
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up CI environment
uses: ./.github/actions/setup
- name: Database interoperability tests for Postgres
run: make tests-postgres
- name: Upload DB interoperability test coverage reports to codecov.io
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: testreports/dbinterop-postgres/clover.xml
flags: dbinterop-postgres
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"dealerdirect/phpcodesniffer-composer-installer": ">= 0.7.0",
"phpunit/phpunit": "~9",
"phpunit/phpcov": "*",
"vimeo/psalm": "~5.15.0",
"vimeo/psalm": "~5.18.0",
"psalm/plugin-phpunit": "*",
"aodto/phasher": "dev-master"
},
Expand Down
4 changes: 0 additions & 4 deletions src/Addressbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,6 @@ public function add_to_group($group_id, $ids): int
$ids, // unfiltered ids allowed in adjustContactCategories()
/** @param list<string> $groups */
function (array &$groups, string $contact_id) use ($logger, $groupname, &$added): bool {
/** @var int $added */
if (self::stringsAddRemove($groups, [ $groupname ])) {
$logger->debug("Adding contact $contact_id to category $groupname");
++$added;
Expand All @@ -1073,7 +1072,6 @@ function (array &$groups, string $contact_id) use ($logger, $groupname, &$added)
return false;
}
);
/** @var int $added Reference from the closure appears to confuse psalm */
}

$this->resync();
Expand Down Expand Up @@ -1140,7 +1138,6 @@ public function remove_from_group($group_id, $ids): int
$ids, // unfiltered ids allowed in adjustContactCategories()
/** @param list<string> $groups */
function (array &$groups, string $contact_id) use ($logger, $groupname, &$deleted): bool {
/** @var int $deleted */
if (self::stringsAddRemove($groups, [], [$groupname])) {
$logger->debug("Removing contact $contact_id from category $groupname");
++$deleted;
Expand All @@ -1151,7 +1148,6 @@ function (array &$groups, string $contact_id) use ($logger, $groupname, &$delete
return false;
}
);
/** @psalm-var int $deleted Reference from the closure appears to confuse psalm */
}

$this->resync();
Expand Down
2 changes: 2 additions & 0 deletions src/Frontend/AdminSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ private function updatePresetAddressbook(
$account = Config::makeAccount($accountCfg);
$abook = $infra->makeWebDavResource($abookCfg['url'], $account);
if ($abook instanceof AddressbookCollection) {
/** @psalm-var Preset $preset */
$preset['name'] = $abMgr->replacePlaceholdersAbookName(
$preset['name'],
$accountCfg,
Expand All @@ -491,6 +492,7 @@ private function updatePresetAddressbook(
}
}

/** @psalm-var Preset $preset */
if ($abookCfg[$k] != $preset[$k]) {
$pa[$k] = $preset[$k];
}
Expand Down

0 comments on commit 3a7b796

Please sign in to comment.