diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fe48cf2bf..b3f016f46 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -24,7 +24,7 @@ jobs: strategy: matrix: - php_version: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] + php_version: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] name: "Lint: PHP ${{ matrix.php_version }}" diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 2ce19b0f3..3b9f71f39 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -53,6 +53,10 @@ jobs: wp_version: 'latest' multisite: true + - php_version: '8.5' + wp_version: 'latest' + multisite: false + name: "Integration Test: PHP ${{ matrix.php_version }} | WP ${{ matrix.wp_version }}${{ matrix.multisite == true && ' (+ ms)' || '' }}" # Allow builds to fail on as-of-yet unreleased WordPress versions. diff --git a/.github/workflows/plugin-check.yml b/.github/workflows/plugin-check.yml index 4d6cc3916..f78e80953 100644 --- a/.github/workflows/plugin-check.yml +++ b/.github/workflows/plugin-check.yml @@ -14,7 +14,12 @@ jobs: with: php-version: '8.3' coverage: none - tools: wp-cli + # A pinned release archive, not the mutable latest-build URL: when + # that download fails, setup-php only logs "Could not setup wp-cli" + # and the job dies later with "wp: command not found". + tools: wp-cli:2.12.0 + env: + fail-fast: true # setup-php stores the ephemeral Actions token in ~/.composer/auth.json # as a github-oauth credential. Composer rejects that token whenever it @@ -37,6 +42,9 @@ jobs: - name: Install latest version of dist-archive-command run: | rm -f "$(composer config --global home 2>/dev/null)/auth.json" + # Without a token Composer may fall back to cloning over SSH, and + # the runner has no key. HTTPS works for this public repository. + git config --global url."https://github.com/".insteadOf "git@github.com:" wp package install wp-cli/dist-archive-command:v3.1.0 - name: Build plugin