Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/php:1-8.3-bullseye
FROM mcr.microsoft.com/devcontainers/php:8.3-trixie

# Remove broken Yarn repo
RUN rm -f /etc/apt/sources.list.d/yarn.list
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup PHP with composer v2
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.3'
tools: composer:v2

- name: Configure npm for GitHub Packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Bump version files (no release yet)
uses: helsingborg-stad/release-wp-plugin-action@main
with:
php-version: 8.2
php-version: 8.3
node-version: 24.3.0
skip-release: true # custom flag you added

Expand All @@ -43,7 +43,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
php-version: "8.3"

- name: Configure npm for GitHub Packages
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.3'
tools: composer:v2

- name: Install composer packages
Expand Down
134 changes: 67 additions & 67 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
{
"name": "helsingborg-stad/styleguide",
"license": "MIT",
"type": "library",
"authors": [
{
"name": "Sebastian Thulin",
"email": "sebastian.thulin@helsingborg.se"
},
{
"name": "Nikolas Ramstedt",
"email": "nikolas.ramstedt@helsingborg.se"
},
{
"name": "Jonatan Hanson",
"email": "jonatan.hanson@helsingborg.se"
},
{
"name": "Johan Silvergrund",
"email": "johan.silvergrund@hiq.se"
}
],
"minimum-stability": "stable",
"repositories": [
{
"type": "composer",
"url": "https://packagist.org"
},
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"autoload": {
"psr-4": {
"MunicipioStyleGuide\\": "source/php/",
"MunicipioStyleGuide\\Validators\\": "source/validators/"
}
},
"require": {
"php": "^8.2",
"erusev/parsedown": "^1.7",
"helsingborg-stad/component-library": "5.24.3",
"ramsey/uuid": "4.9.3"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
"carthage-software/mago": "1.26.0"
},
"config": {
"allow-plugins": {
"carthage-software/mago": true
}
},
"scripts": {
"test": "XDEBUG_MODE=off vendor/bin/phpunit --testdox",
"test:filter": "XDEBUG_MODE=off vendor/bin/phpunit --filter",
"lint": "vendor/bin/mago lint",
"fix": "vendor/bin/mago lint --format-after-fix --fix",
"format": "vendor/bin/mago fmt",
"serve": "php -S 127.0.0.1:0 router.php",
"cache": "php cli.php cache",
"cache:clear:blade": "php cli.php cache --clear --blade blade",
"pin-all-latest": [
"bash -c 'set -euo pipefail; composer outdated --direct --format=json --ignore-platform-req=ext-imagick | jq -c \".installed[] | select(.latest != null and .latest != \\\"[none matched]\\\" and (.latest | startswith(\\\"dev-\\\") | not)) | {name:.name, version:.latest}\" | while read -r row; do PKG=$(echo \"$row\" | jq -r .name); VER=$(echo \"$row\" | jq -r .version); CURRENT=$(jq -r --arg p \"$PKG\" \".require[\\$p] // \\\"\\\"\" composer.json); if [ -z \"$CURRENT\" ]; then echo \"Skipping $PKG (not in root composer.json)\"; elif [[ \"$CURRENT\" == dev-* ]]; then echo \"Skipping $PKG (current version is dev)\"; else echo \"Updating $PKG to $VER\"; jq --arg p \"$PKG\" --arg v \"$VER\" \".require[\\$p] = \\$v\" composer.json > composer.json.tmp && mv composer.json.tmp composer.json; fi; done'",
"composer update --lock --ignore-platform-req=ext-imagick -W"
]
}
"name": "helsingborg-stad/styleguide",
"license": "MIT",
"type": "library",
"authors": [
{
"name": "Sebastian Thulin",
"email": "sebastian.thulin@helsingborg.se"
},
{
"name": "Nikolas Ramstedt",
"email": "nikolas.ramstedt@helsingborg.se"
},
{
"name": "Jonatan Hanson",
"email": "jonatan.hanson@helsingborg.se"
},
{
"name": "Johan Silvergrund",
"email": "johan.silvergrund@hiq.se"
}
],
"minimum-stability": "stable",
"repositories": [
{
"type": "composer",
"url": "https://packagist.org"
},
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"autoload": {
"psr-4": {
"MunicipioStyleGuide\\": "source/php/",
"MunicipioStyleGuide\\Validators\\": "source/validators/"
}
},
"require": {
"php": "^8.3",
"erusev/parsedown": "^1.7",
"helsingborg-stad/component-library": "5.24.3",
"ramsey/uuid": "4.9.3"
},
"require-dev": {
"phpunit/phpunit": "^11.5",
"carthage-software/mago": "1.26.0"
},
"config": {
"allow-plugins": {
"carthage-software/mago": true
}
},
"scripts": {
"test": "XDEBUG_MODE=off vendor/bin/phpunit --testdox",
"test:filter": "XDEBUG_MODE=off vendor/bin/phpunit --filter",
"lint": "vendor/bin/mago lint",
"fix": "vendor/bin/mago lint --format-after-fix --fix",
"format": "vendor/bin/mago fmt",
"serve": "php -S 127.0.0.1:0 router.php",
"cache": "php cli.php cache",
"cache:clear:blade": "php cli.php cache --clear --blade blade",
"pin-all-latest": [
"bash -c 'set -euo pipefail; composer outdated --direct --format=json --ignore-platform-req=ext-imagick | jq -c \".installed[] | select(.latest != null and .latest != \\\"[none matched]\\\" and (.latest | startswith(\\\"dev-\\\") | not)) | {name:.name, version:.latest}\" | while read -r row; do PKG=$(echo \"$row\" | jq -r .name); VER=$(echo \"$row\" | jq -r .version); CURRENT=$(jq -r --arg p \"$PKG\" \".require[\\$p] // \\\"\\\"\" composer.json); if [ -z \"$CURRENT\" ]; then echo \"Skipping $PKG (not in root composer.json)\"; elif [[ \"$CURRENT\" == dev-* ]]; then echo \"Skipping $PKG (current version is dev)\"; else echo \"Updating $PKG to $VER\"; jq --arg p \"$PKG\" --arg v \"$VER\" \".require[\\$p] = \\$v\" composer.json > composer.json.tmp && mv composer.json.tmp composer.json; fi; done'",
"composer update --lock --ignore-platform-req=ext-imagick -W"
]
}
}
Loading
Loading