Skip to content

Commit 941423b

Browse files
authored
Merge pull request #75 from vanilla/remove-garden-cli-lock
Upgrade KB Porter to PHP 8.1
2 parents 244425e + 2587829 commit 941423b

13 files changed

Lines changed: 525 additions & 2442 deletions

File tree

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
concurrency:
10+
# Concurrency is only limited on pull requests. head_ref is only defined on PR triggers so otherwise it will use the random run id and always build all pushes.
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
phpunit-tests:
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
php-version: ["8.1", "8.2"]
24+
steps:
25+
- uses: actions/checkout@v3
26+
- name: Installing PHP ${{ matrix.php-version }}
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php-version }}
30+
- name: Composer Install
31+
run: composer install -o
32+
- name: PHPUnit
33+
run: ./vendor/bin/phpunit -c ./phpunit.xml.dist
34+
- name: Static Analysis
35+
run: ./vendor/bin/psalm

.phpunit.result.cache

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":1,"defects":[],"times":{"Vanilla\\KnowledgePorter\\Tests\\MainTest::testChangeCase with data set \"foo\"":0.001,"Vanilla\\KnowledgePorter\\Tests\\MainTest::testChangeCase with data set \"foo-bar\"":0,"Vanilla\\KnowledgePorter\\Tests\\ZendeskSourceTest::testBasicReplaceUrls":0.005}}

composer.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,25 @@
55
"authors": [
66
],
77
"require": {
8-
"php": ">=7.2",
8+
"php": "^8.1",
99
"ext-json": "*",
10-
"vanilla/garden-cli": "^2.2",
11-
"vanilla/garden-container": "^3.0",
12-
"vanilla/garden-schema": "~1.10.2",
10+
"vanilla/garden-cli": "^4.0",
11+
"vanilla/garden-container": "^4.0",
12+
"vanilla/garden-schema": "^1.13",
1313
"vanilla/garden-http": "^2.1",
14-
"psr/log": "*",
14+
"psr/log": "^3.0",
1515
"psr/simple-cache": "*",
16-
"symfony/cache": "^4.1",
16+
"symfony/cache" : "^6.2",
1717
"ext-dom": "*",
1818
"ext-mbstring": "*",
19-
"ext-libxml": "*"
19+
"ext-libxml": "*",
20+
"ext-simplexml": "*"
2021
},
2122
"require-dev": {
22-
"phpunit/phpunit": "^7",
23+
"phpunit/phpunit": "^9",
2324
"vanilla/standards": "^1.3",
24-
"squizlabs/php_codesniffer": "^3.5"
25+
"squizlabs/php_codesniffer": "^3.5",
26+
"vimeo/psalm": "^4.9"
2527
},
2628
"autoload": {
2729
"psr-4": {

0 commit comments

Comments
 (0)