diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 112614f..a3d9050 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 22dc2cc..7239bd8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/db.php b/src/db.php index e813b17..3a01079 100644 --- a/src/db.php +++ b/src/db.php @@ -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.