Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
c933bc9
fix #2126 filter commonsbooking_isCurrentUserAdmin not granting edit …
hansmorb Apr 1, 2026
4c5cd08
Merge branch 'master' into bugfix/issue-2126
hansmorb Apr 13, 2026
87a5567
#2143 filter hook for gbfs feed announcement
hansmorb Apr 15, 2026
bc4da39
Merge pull request #2154 from wielebenwir/enhancement/issue-2143
hansmorb Apr 15, 2026
1f5dddc
GBFS: refactor every response to go through same validation function
hansmorb Apr 15, 2026
50927bd
Merge pull request #2157 from wielebenwir/enhancement/issue-2156
hansmorb Apr 15, 2026
ee21cdb
test for #2158 BookingRule::checkMaxBookingDays does not work for une…
hansmorb Apr 15, 2026
53fa4b0
fix #2158 BookingRule::checkMaxBookingDays does not work for uneven a…
hansmorb Apr 15, 2026
4ae537d
Merge pull request #2159 from wielebenwir/bugfix/issue-2158
hansmorb Apr 15, 2026
a12713a
npm(deps-dev): bump @wordpress/env from 11.3.0 to 11.4.0 (#2167)
dependabot[bot] Apr 19, 2026
6bc6350
npm(deps-dev): bump cypress from 15.13.1 to 15.14.0 (#2166)
dependabot[bot] Apr 19, 2026
36bf442
npm(deps-dev): bump grunt from 1.6.1 to 1.6.2 (#2165)
dependabot[bot] Apr 20, 2026
a95a48b
npm(deps-dev): bump prettier from 3.8.1 to 3.8.3 (#2164)
dependabot[bot] Apr 20, 2026
535b18a
npm(deps-dev): bump sass from 1.97.3 to 1.99.0
dependabot[bot] Apr 20, 2026
cce6fde
unify test dates
hansmorb Apr 21, 2026
86ddb10
add test for gbfs discovery route
hansmorb Apr 21, 2026
b8cdf1f
replace StationStatusTest with StationStatusRouteTest
hansmorb Apr 22, 2026
238aba2
test compatible with all php version
hansmorb Apr 22, 2026
56d5c87
npm(deps): bump vue from 3.5.30 to 3.5.33
dependabot[bot] Apr 26, 2026
8a5f430
add unit tests for GBFS routes station_information and system_informa…
hansmorb Apr 27, 2026
25a7902
Merge pull request #2168 from wielebenwir/tests/gbfs-route-tests
hansmorb Apr 27, 2026
08956ec
npm(deps-dev): bump cypress from 15.14.0 to 15.14.1 (#2172)
dependabot[bot] Apr 30, 2026
86f640d
Restructured FAQs as per #2047 and reformulated headers that were not…
sbomsdorf May 1, 2026
7f77ec7
Adds a hint about FAQ vs. knwon incompatibilities.
sbomsdorf May 1, 2026
920e3a4
Removes old subpages. They have been merged into a single FAQ page.
sbomsdorf May 1, 2026
337f925
Removes hasBookingCodes() and replaces calls by identical function us…
sbomsdorf May 2, 2026
6811294
Fixed broken references.
sbomsdorf May 3, 2026
93a2dea
Removes hasBookingCodes() and replaces calls by identical function us…
hansmorb May 3, 2026
ab9fb74
Overwrite standard settings for bold menu entry w/out arrow
sbomsdorf May 3, 2026
05508ce
Adds an "Expand/Collapse all"-button
sbomsdorf May 4, 2026
85f6da1
Adds references to anchors in the intro paragraph
sbomsdorf May 4, 2026
88106c2
Merge pull request #2182 from wielebenwir/dependabot/npm_and_yarn/wor…
dependabot[bot] May 7, 2026
8df3956
GBFS: made item that base-route iterates over customizable
hansmorb May 7, 2026
1197864
add doccomments to timeframe model constants
hansmorb May 7, 2026
8915700
add getLocation to Item model to retrieve currently stationed location
hansmorb May 7, 2026
e24c03a
GBFS: start day offset now not factored in availability, bc those ite…
hansmorb May 7, 2026
410f97c
tests: add additional unit test to assert empty calendar state
hansmorb May 7, 2026
55b1f3b
GBFS: change string conversion to always use strval
hansmorb May 7, 2026
173d7c2
GBFS: add vehicle_status route
hansmorb May 7, 2026
42cceed
GBFS: add vehicle_availability route
hansmorb May 7, 2026
14bc0c2
amend! GBFS: add vehicle_status route
hansmorb May 7, 2026
2e62aa7
GBFS: always skip item when there is no location available
hansmorb May 8, 2026
70de1ba
fix doccomment
hansmorb May 8, 2026
f380aad
tests: add test for GBFS availability with offset calculation
hansmorb May 8, 2026
86fe75c
#2097 GBFS add vehicle status and vehicle availability route (#2153)
hansmorb May 8, 2026
359dc57
Ran wp i18n make-pot
hansmorb May 8, 2026
63ab288
GBFS: #2155 dynamic opening hours
hansmorb May 8, 2026
079a89c
Merge pull request #2185 from wielebenwir/enhancement/issue-2155
hansmorb May 8, 2026
81ecea0
Addresses review feedback
sbomsdorf May 10, 2026
0cc17cd
composer(deps): bump symfony/service-contracts from 3.6.1 to 3.7.0 (#…
dependabot[bot] May 11, 2026
a53cc86
#2116 add checkbox to exclude items from API
hansmorb May 12, 2026
80ed98a
#2116 add checkbox to exclude items from API (#2189)
hansmorb May 13, 2026
14c7b9a
Ran wp i18n make-pot
hansmorb May 13, 2026
28f6e35
Merge pull request #2180 from wielebenwir/dependabot/npm_and_yarn/cyp…
dependabot[bot] May 13, 2026
fec876e
Bump SamKirkland/FTP-Deploy-Action from 4.3.6 to 4.4.0 (#2170)
dependabot[bot] May 13, 2026
5a80d75
npm(deps-dev): bump @babel/preset-env from 7.29.2 to 7.29.5
dependabot[bot] May 13, 2026
81ee945
composer(deps): bump phpmailer/phpmailer from 7.0.2 to 7.1.1
dependabot[bot] May 24, 2026
26c39fd
update cache and node setup action in build-action
hansmorb Jun 1, 2026
22f6a6c
manually package strauss phar to avoid failing in CI
hansmorb Jun 1, 2026
512829f
update node to v24: fix yarn failing in prettier step
hansmorb Jun 1, 2026
3cedc4b
prettier in CI: use node version file
hansmorb Jun 1, 2026
d7afde3
wp-env: use seperate config file for test environment
hansmorb Jun 1, 2026
2367aa7
GBFS: version bump to 3.1-RC3
hansmorb Jun 1, 2026
53dd610
fix CI (#2199)
hansmorb Jun 1, 2026
f8b83d1
GBFS: added vehicle types route /w hardcoded defaults
hansmorb Jun 1, 2026
4701db8
Merge pull request #2198 from wielebenwir/enhancement/issue-2192
hansmorb Jun 1, 2026
3a7e894
composer(deps): bump cmb2/cmb2 from 2.11.0 to 2.12.0
dependabot[bot] Jun 1, 2026
036e8fe
Merge pull request #2200 from wielebenwir/dependabot/composer/cmb2/cm…
hansmorb Jun 1, 2026
2279cc2
composer(deps-dev): bump phpstan/phpstan from 2.1.44 to 2.2.1
dependabot[bot] Jun 1, 2026
1b1a81f
composer(deps): bump symfony/cache from 5.4.40 to 5.4.52
dependabot[bot] Jun 1, 2026
c958087
Merge pull request #2196 from wielebenwir/dependabot/composer/symfony…
hansmorb Jun 2, 2026
88a1cf3
freeze time in View\CalendarTest.php to fix flakiness
hansmorb Jun 2, 2026
4fcd455
flush cache and simplify renderTable test
hansmorb Jun 2, 2026
229dbf9
add clear cache to CustomPostTypeTest to fix flaky tests
hansmorb Jun 2, 2026
e0b6334
ViewTest: create timeframes relative to test date
hansmorb Jun 2, 2026
5777bd7
better exception handling for missing posts
hansmorb Jun 2, 2026
03628de
phpcbf
hansmorb Jun 2, 2026
0978c39
Merge pull request #2203 from wielebenwir/tests/unflaky
hansmorb Jun 2, 2026
6791f6e
GBFS: #2193 human-readable identifier for system_id
hansmorb Jun 2, 2026
c584694
Ran wp i18n make-pot
hansmorb Jun 2, 2026
ba4f7cf
Merge pull request #2202 from wielebenwir/enhancement/issue-2193
hansmorb Jun 2, 2026
3b38bf1
compatibility /w WP 7.0
hansmorb Jun 3, 2026
2583380
Merge pull request #2108 from wielebenwir/enhancement/issue-2107
hansmorb Jun 3, 2026
7174829
Merge pull request #2127 from wielebenwir/bugfix/issue-2126
hansmorb Jun 3, 2026
121fe79
fix findings /w phpstan 2.2.1 update
hansmorb Jun 3, 2026
58fb578
Merge pull request #2201 from wielebenwir/dependabot/composer/phpstan…
hansmorb Jun 3, 2026
027ac07
Ran wp i18n make-pot
hansmorb Jun 3, 2026
a31717c
Merge pull request #2195 from wielebenwir/dependabot/composer/phpmail…
hansmorb Jun 3, 2026
ec7b93f
Merge pull request #2173 from wielebenwir/dependabot/npm_and_yarn/vue…
hansmorb Jun 3, 2026
12c0514
Merge pull request #2135 from wielebenwir/dependabot/npm_and_yarn/sas…
hansmorb Jun 3, 2026
7628dfb
Revert "manually package strauss phar to avoid failing in CI"
hansmorb Jun 3, 2026
61e2eb9
bump strauss to 0.27.3
hansmorb Jun 3, 2026
bdbd100
Merge pull request #2205 from wielebenwir/bump-strauss
hansmorb Jun 3, 2026
04ebd9f
Merge pull request #2178 from sbomsdorf/fix/2047-restructure-faqs
hansmorb Jun 4, 2026
052f7b4
Merge pull request #2183 from wielebenwir/dependabot/npm_and_yarn/bab…
hansmorb Jun 4, 2026
d87f6a8
Bump codecov/codecov-action from 6 to 7 (#2206)
dependabot[bot] Jun 7, 2026
5c343e9
npm(deps-dev): bump cypress from 15.14.2 to 15.16.0 (#2209)
dependabot[bot] Jun 7, 2026
252951b
npm(deps-dev): bump @wordpress/env from 11.5.0 to 11.8.0 (#2211)
dependabot[bot] Jun 7, 2026
155da01
npm(deps-dev): bump @babel/preset-env from 7.29.5 to 7.29.7 (#2210)
dependabot[bot] Jun 7, 2026
eb28634
npm(deps-dev): bump sass from 1.99.0 to 1.100.0 (#2213)
dependabot[bot] Jun 7, 2026
617cef5
fix #2204: api routes could not be validated when api key was present
hansmorb Jun 11, 2026
73fa02b
CI: add step to cache GBFS validator dependencies
hansmorb Jun 11, 2026
2d82d36
Merge pull request #2214 from wielebenwir/bugfix/issue-2204
hansmorb Jun 11, 2026
2ec7a7c
Merge pull request #2215 from wielebenwir/dev/caching-validator-depen…
hansmorb Jun 11, 2026
c39e672
prevent setting of unconfirmed status on confirmed bookings
poilu Jun 12, 2026
d9c764d
npm(deps-dev): bump cypress from 15.16.0 to 15.17.0 (#2221)
dependabot[bot] Jun 15, 2026
2257d6f
Update Readme.md
hansmorb Jun 15, 2026
fd21bc1
test for #2217: confirmed booking re-set to unconfirmed
hansmorb Jun 15, 2026
29b67da
workflow: remove duplicate npm ci
hansmorb Jun 15, 2026
9912536
formatting in workflow files
hansmorb Jun 15, 2026
7f1dd9b
ci: fix release action asset uploading
hansmorb Jun 15, 2026
1df37b0
Merge pull request #2224 from wielebenwir/dev/remove-duplicate-steps
hansmorb Jun 15, 2026
ed51829
docs: remove bug info, add schema version and fix info
datengraben Apr 11, 2026
a30cdc6
GBFS: document v3.1 routes
hansmorb May 8, 2026
2b3913f
docs: update gbfs info
hansmorb Jun 15, 2026
e9dfbed
docs: document excluding items from API
hansmorb Jun 15, 2026
ab9288d
Merge pull request #2148 from wielebenwir/datengraben/add-docs
hansmorb Jun 15, 2026
abf0b29
#1756 deprecate code to be removed in 2.12
hansmorb Jun 15, 2026
c82c580
#1509 enable multi-select for all blocking timeframe
hansmorb Jun 15, 2026
369a05e
Merge pull request #2226 from wielebenwir/enhancement/issue-1509
hansmorb Jun 15, 2026
91dd8f9
Ran wp i18n make-pot
hansmorb Jun 15, 2026
b92872d
Prevent reopening existing bookings as unconfirmed
poilu Jun 15, 2026
51d3cbe
Merge pull request #2218 from flotte-berlin/bugfix/issue-2217
hansmorb Jun 17, 2026
0f0e42a
Ran wp i18n make-pot
hansmorb Jun 17, 2026
6720439
fix booking denied string
hansmorb Jun 17, 2026
5d53bff
Ran wp i18n make-pot
hansmorb Jun 17, 2026
10507fb
added strings for 2.11
hansmorb Jun 17, 2026
5a9388e
Merge pull request #2225 from wielebenwir/enhancement/issue-1756
hansmorb Jun 17, 2026
9dfdc7f
Ran wp i18n make-pot
hansmorb Jun 17, 2026
9968583
Bump actions/checkout from 6 to 7 (#2235)
dependabot[bot] Jun 21, 2026
af704b9
npm(deps-dev): bump @wordpress/env from 11.8.0 to 11.8.1 (#2236)
dependabot[bot] Jun 21, 2026
f64d8d0
npm(deps-dev): bump sass from 1.100.0 to 1.101.0 (#2223)
dependabot[bot] Jun 21, 2026
ea97988
npm(deps): bump vue from 3.5.33 to 3.5.38 (#2222)
dependabot[bot] Jun 21, 2026
d38e9e3
npm(deps-dev): bump prettier from 3.8.3 to 3.8.4 (#2220)
dependabot[bot] Jun 21, 2026
0ee50c7
npm(deps): bump select2 from 4.0.13 to 4.1.0 (#2212)
dependabot[bot] Jun 21, 2026
2f4bc1c
fix #2229 GBFS vehicle_status.json now only contains actually availab…
hansmorb Jul 1, 2026
8d25e18
fix prettier finding
hansmorb Jul 1, 2026
be327d9
Merge pull request #2233 from wielebenwir/bugfix/issue-2229
hansmorb Jul 1, 2026
8cd5947
npm(deps-dev): bump @wordpress/env from 11.8.1 to 11.10.0 (#2247)
dependabot[bot] Jul 6, 2026
a31022e
#2227 add gbfs vehicle_status available_until field (#2230)
hansmorb Jul 6, 2026
fb0c449
Revert "fix #2204: api routes could not be validated when api key was…
hansmorb Jul 6, 2026
ebf3a29
#2251 support passing apikey by header
hansmorb Jul 8, 2026
4ea14ab
#2251 make independent from existence of apache getallheaders fn
hansmorb Jul 8, 2026
d9afd76
fix #2251 pass apikey by header (#2252)
hansmorb Jul 8, 2026
2937dae
npm(deps-dev): bump cypress from 15.17.0 to 15.18.0 (#2240)
dependabot[bot] Jul 8, 2026
d61f418
Bump actions/cache from 5 to 6 (#2237)
dependabot[bot] Jul 8, 2026
b268ffa
#2253 GBFS: tests for available_until incorrect when booking offset i…
hansmorb Jul 8, 2026
10c6d69
#2253 GBFS: fix for available_until incorrect when booking offset is set
hansmorb Jul 8, 2026
03011cf
refactor getAvailableUntil to make it more readable
hansmorb Jul 8, 2026
4df6b33
Merge pull request #2254 from wielebenwir/bugfix/issue-2253
hansmorb Jul 9, 2026
c5dab67
Merge remote-tracking branch 'wielebenwir/master' into claude/commons…
claude Jul 14, 2026
a712b12
Add extensibility plan for CommonsBooking core
claude Jul 14, 2026
40d6453
Add booking lifecycle action hooks (Phase 1 extensibility)
claude Jul 14, 2026
d20b0a6
Add commonsbooking_can_cancel_booking filter
claude Jul 14, 2026
00ab466
Add commonsbooking_booking_before_save filter
claude Jul 14, 2026
7ff6e19
Add commonsbooking_is_timeframe_bookable filter
claude Jul 14, 2026
568c8de
Add commonsbooking_day_availability filter
claude Jul 14, 2026
b79a7cc
Add commonsbooking_bookable_timeframes filter
claude Jul 14, 2026
c3808bd
Add commonsbooking_calendar_data filter
claude Jul 14, 2026
008f20e
Add commonsbooking_api_item_response filter
claude Jul 14, 2026
692c0ee
Add commonsbooking_api_availability_response filter
claude Jul 14, 2026
63e0869
test: cover commonsbooking_can_cancel_booking filter
claude Jul 14, 2026
6c08a9f
test: cover commonsbooking_booking_before_save filter
claude Jul 14, 2026
d902bf9
test: cover commonsbooking_is_timeframe_bookable filter
claude Jul 15, 2026
1f8975a
test: cover commonsbooking_day_availability filter
claude Jul 15, 2026
5bfd8a6
test: cover commonsbooking_bookable_timeframes filter
claude Jul 15, 2026
c79d348
test: cover commonsbooking_calendar_data filter
claude Jul 15, 2026
8b34d3b
test: cover commonsbooking_api_item_response filter
claude Jul 15, 2026
d39c769
test: cover commonsbooking_api_availability_response filter
claude Jul 15, 2026
0e3f6dd
Add minimal Uncanny Automator integration
claude Jul 15, 2026
6fbae0d
Add booking-cancelled Automator trigger for SMS/Slack notifications
claude Jul 15, 2026
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
13 changes: 3 additions & 10 deletions .github/actions/build-plugin/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,18 @@ runs:

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-

- name: Install dependencies
run: |
composer install --no-dev --prefer-dist --no-progress
shell: bash

- uses: actions/setup-node@v4
- uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm ci --legacy-peer-deps --include=dev
shell: bash


- name: Run build script (skip zip generation)
if: ${{ inputs.generate_zip == 'false' }}
run: bin/build-zip.sh --skip-zip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout PR branch
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
ref: ${{ github.head_ref }}

Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
php vendor/bin/phpbench run tests/benchmark --report=aggregate > /tmp/pr-benchmark.txt

- name: Checkout master branch
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
ref: master

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
fetch-depth: 0

Expand All @@ -44,7 +44,7 @@ jobs:

- name: Upload documentation
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: SamKirkland/FTP-Deploy-Action@v4.3.6
uses: SamKirkland/FTP-Deploy-Action@v4.4.0
with:
server: ${{ secrets.CBPAGE_SERVER }}
username: ${{ secrets.CBPAGE_USER }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-24.04
steps:

- uses: actions/checkout@v6
- uses: actions/checkout@v7

- uses: ./.github/actions/build-plugin

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-24.04
name: Check i18n coverage
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- uses: shivammathur/setup-php@v2
with:
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
needs: i18n-coverage
steps:

- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
ref: ${{ github.ref }} # checkout the latest commit so that we can push changes

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# If you do not check out your code, Copilot will do this for you.
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Set up MySQL
run: |
Expand Down
28 changes: 20 additions & 8 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,24 @@ jobs:
- {name: 'trunk', version: 'WordPress/WordPress#master'}

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- uses: ./.github/actions/build-plugin

- name: Install wp-env systemwide
shell: bash
run: npm -g i @wordpress/env

- name: Overwrite PHP versions & core for wp-env
if: matrix.core.version != 'null'
run: jq '. + {"phpVersion":"${{ matrix.php }}","core":"${{ matrix.core.version }}"}' tests/cypress/wordpress-files/e2e-override.json > .wp-env.override.json
- name: Overwrite PHP version & core for wp-env
run: >
jq
--arg php "${{ matrix.php }}"
--arg core "${{ matrix.core.version }}"
'. + {"phpVersion": $php} + (if $core == "null" then {} else {"core": $core} end)'
tests/cypress/wordpress-files/e2e-override.json > .wp-env.test.override.json

- name: setup wp env
run: npm run env:start
run: npm run env:test:start

- name: install test data for e2e test
run: npm run cypress:setup
Expand All @@ -69,15 +73,23 @@ jobs:

- name: Enable API
run: |
wp-env run tests-cli wp option patch insert commonsbooking_options_api api-activated on
wp-env run tests-cli wp option patch insert commonsbooking_options_api apikey_not_required on
wp-env --config=.wp-env.test.json run cli wp option patch insert commonsbooking_options_api api-activated on
wp-env --config=.wp-env.test.json run cli wp option patch insert commonsbooking_options_api apikey_not_required on

- name: Checkout GBFS validator
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
repository: MobilityData/gbfs-validator
path: gbfs-validator

- name: Cache GBFS validator dependencies
uses: actions/cache@v6
with:
path: gbfs-validator/node_modules
key: ${{ runner.os }}-gbfs-validator-${{ hashFiles('gbfs-validator/yarn.lock') }}
restore-keys: |
${{ runner.os }}-gbfs-validator-

- name: Install GBFS validator dependencies
working-directory: gbfs-validator
run: yarn
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/phpcbf-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1' # Adjust this to your PHP version
php-version: '8.1'
extensions: uopz


Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

# TODO Use the composer action below
- uses: shivammathur/setup-php@v2
Expand All @@ -44,7 +44,7 @@ jobs:
run: |
composer dump-autoload -o

#- uses: actions/checkout@v6
#- uses: actions/checkout@v7
#- uses: php-actions/composer@v6

- name: PHPStan Static Analysis
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- { name: 'trunk', version: 'trunk' }

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- name: Set up MySQL
run: |
Expand All @@ -53,13 +53,12 @@ jobs:
- name: Install SVN
run: sudo apt install -y subversion


- name: Validate composer.json and composer.lock
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v5
uses: actions/cache@v6
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
Expand All @@ -84,7 +83,7 @@ jobs:
php vendor/bin/phpunit

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v6
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./build/logs/clover.xml
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ jobs:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
- run: |
yarn
yarn prettier . --check
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ jobs:
publish:
name: New Release
runs-on: ubuntu-24.04
permissions:
contents: write
steps:

- uses: actions/checkout@v6
- uses: actions/checkout@v7

- uses: ./.github/actions/build-plugin

Expand All @@ -34,11 +36,6 @@ jobs:
SLUG: commonsbooking # optional, remove if GitHub repo name matches SVN slug, including capitalization

- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v3
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ steps.deploy.outputs.zip-path }}
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip
files: ${{ steps.deploy.outputs.zip-path }}
2 changes: 1 addition & 1 deletion .github/workflows/wpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: WPCS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Install dependencies
run: composer install --prefer-dist --no-progress --ignore-platform-reqs
- name: WPCS check
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/zip-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-24.04
steps:

- uses: actions/checkout@v6
- uses: actions/checkout@v7
with:
fetch-depth: 0 # Important for getting full commit history

Expand All @@ -29,7 +29,7 @@ jobs:

- name: Upload zip
if: ${{ !startsWith(github.head_ref, 'dependabot') }}
uses: SamKirkland/FTP-Deploy-Action@v4.3.6
uses: SamKirkland/FTP-Deploy-Action@v4.4.0
with:
exclude: |
**
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.20.0
v24.16.0
18 changes: 3 additions & 15 deletions .wp-env.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"phpVersion" : "8.1",
"core" : "Wordpress/Wordpress#6.9",
"core" : "Wordpress/Wordpress#7.0",
"plugins" : [
".",
"https://downloads.wordpress.org/plugin/wp-crontrol.zip",
Expand All @@ -11,25 +11,13 @@
"https://downloads.wordpress.org/plugin/disable-welcome-messages-and-tips.zip"
],
"port" : 1000,
"testsPort" : 1001,
"testsEnvironment" : false,
"config" : {
"WP_DEBUG" : true,
"WP_DEBUG_LOG" : true,
"WP_DEBUG_DISPLAY" : false
},
"themes" : [
"flegfleg/kasimir-theme"
],
"env" : {
"tests" : {
"mappings" : {
"wp-content/plugins/commonsbooking" : "."
},
"config" : {
"WP_DEBUG" : true,
"WP_DEBUG_LOG" : true,
"WP_DEBUG_DISPLAY" : false
}
}
}
]
}
23 changes: 23 additions & 0 deletions .wp-env.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"phpVersion" : "8.1",
"core" : "Wordpress/Wordpress#6.9",
"plugins" : [
".",
"https://downloads.wordpress.org/plugin/wp-crontrol.zip",
"https://downloads.wordpress.org/plugin/wordpress-importer.zip",
"https://downloads.wordpress.org/plugin/query-monitor.zip",
"https://downloads.wordpress.org/plugin/wp-mail-logging.zip",
"https://downloads.wordpress.org/plugin/jsm-show-post-meta.zip",
"https://downloads.wordpress.org/plugin/disable-welcome-messages-and-tips.zip"
],
"port" : 1001,
"testsEnvironment" : false,
"config" : {
"WP_DEBUG" : true,
"WP_DEBUG_LOG" : true,
"WP_DEBUG_DISPLAY" : false
},
"themes" : [
"flegfleg/kasimir-theme"
]
}
Loading
Loading