nestor
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<!--
|
||||
First off, hello!
|
||||
|
||||
Thanks for submitting a PR. We love/welcome PRs (especially if it's your first).
|
||||
-->
|
||||
|
||||
<!-- Remove this if no related tickets exist. -->
|
||||
<!-- You can add the related ticket numbers here using #. Example: #2471 -->
|
||||
Related:
|
||||
|
||||
- Ticket 1
|
||||
- Ticket 2
|
||||
|
||||
## Issue
|
||||
<!-- Description of the problem that this code change is solving -->
|
||||
|
||||
|
||||
## Solution
|
||||
<!-- Description of the solution that this code changes are introducing to the application. -->
|
||||
|
||||
|
||||
## Impact
|
||||
<!-- What impact will this have on the current codebase, performance, backwards compatibility? -->
|
||||
|
||||
|
||||
## Usage Changes
|
||||
<!-- Are there are any usage changes that we need to know about? If so, list them here so that we can integrate it in the release notes and developers know what usage changes are associated to your PR.
|
||||
-->
|
||||
|
||||
## Considerations
|
||||
<!-- As we do not live in an ideal world it's worth to share your thought on how we could make the solution even better. -->
|
||||
|
||||
|
||||
## Testing
|
||||
<!-- Are unit tests included? If they need to be written, please provide pseudo code for a scenario that fails without your code, but succeeds with it -->
|
||||
@@ -0,0 +1,76 @@
|
||||
name: Timber starter theme tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '1.x'
|
||||
- '2.x'
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
- ready_for_review
|
||||
|
||||
# Cancel previous workflow run groups that have not completed.
|
||||
concurrency:
|
||||
# Group workflow runs by workflow name, along with the head branch ref of the pull request
|
||||
# or otherwise the branch or tag ref.
|
||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
phpunit:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
continue-on-error: ${{ matrix.experimental }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
php: ['8.1', '8.2']
|
||||
wp: ['latest']
|
||||
multisite: ['0', '1']
|
||||
extensions: ['gd']
|
||||
experimental: [false]
|
||||
include:
|
||||
# PHP 8.2 / experimental
|
||||
- php: '8.2'
|
||||
wp: 'trunk'
|
||||
dependency-version: 'highest'
|
||||
multisite: '0'
|
||||
experimental: true
|
||||
# PHP 8.3 / experimental
|
||||
- php: '8.3'
|
||||
wp: 'trunk'
|
||||
dependency-version: 'highest'
|
||||
multisite: '0'
|
||||
experimental: true
|
||||
# Coverage
|
||||
- php: '8.1'
|
||||
wp: 'latest'
|
||||
dependency-version: 'highest'
|
||||
multisite: '0'
|
||||
experimental: false
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php }}
|
||||
tools: composer:v2
|
||||
extensions: curl, date, dom, iconv, json, libxml, gd
|
||||
|
||||
- name: Setup problem matchers for PHP
|
||||
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
|
||||
|
||||
- name: Setup problem matchers for PHPUnit
|
||||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
|
||||
|
||||
- uses: ramsey/composer-install@v3
|
||||
|
||||
- name: Run tests
|
||||
run: composer run test
|
||||
env:
|
||||
WP_MULTISITE: ${{ matrix.multisite }}
|
||||
Reference in New Issue
Block a user