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
18 changes: 13 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['5.6', '7.4', '8.0', '8.1', '8.2', '8.3']
php-version: ['5.6', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']

name: Unit tests on PHP ${{ matrix.php-version }}

continue-on-error: ${{ matrix.php-version == '8.3' }}

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

- uses: shivammathur/setup-php@v2
with:
Expand All @@ -37,11 +35,21 @@ jobs:
run: php -l src/db.php

- name: Install Composer dependencies
uses: ramsey/composer-install@v2
uses: ramsey/composer-install@v4
with:
# Bust the cache at least once a month - output format: YYYY-MM.
custom-cache-suffix: $(date -u "+%Y-%m")

- name: Capture package versions for conditional alignment
id: versions
run: |
echo "wordpress=$(composer show roots/wordpress --format=json | jq -r '.versions[0]')" >> $GITHUB_OUTPUT
echo "wp-phpunit=$(composer show wp-phpunit/wp-phpunit --format=json | jq -r '.versions[0]')" >> $GITHUB_OUTPUT

- name: Align wp-phpunit version with WordPress
if: ${{ steps.versions.outputs.wordpress != steps.versions.outputs.wp-phpunit }}
run: composer require --dev wp-phpunit/wp-phpunit ${{ steps.versions.outputs.wordpress }}

- name: Run tests
run: composer test

Expand Down
11 changes: 1 addition & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
# Changelog

## v1.2.0 (2021-08-20)
- Update for compatibility with PHP 8
- Various fixes

## v1.1.0 (2020-06-13)
- Update deprecated array/string offset syntax
- Scaffold integration tests

## v1.0 (2018-09-01)
- Initial Release!
See https://github.com/aaemnnosttv/wp-sqlite-db/releases
2 changes: 1 addition & 1 deletion src/db.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Author: Evan Mattson
* Author URI: https://aaemnnost.tv
* Plugin URI: https://github.com/aaemnnosttv/wp-sqlite-db
* Version: 1.3.1
* Version: 1.3.3
* Requires PHP: 5.6
*
* This file must be placed in wp-content/db.php.
Expand Down