-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 1.03 KB
/
test_phpunit_sqlite.yml
File metadata and controls
35 lines (28 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: WordPress PHPUnit Test with SQLite
# **What it does**: Runs phpunit for a WordPress plugin or theme.
# **Why we have it**: Standardize the testing environment for WordPress plugins and themes.
# **Who does it impact**: Contributors and maintainers.
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- '**.php'
- .github/workflows/test_phpunit_sqlite.yml
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
test-wordpress:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
# Update the specific version of PHP to match the version used on your server.
php-version: '8.1'
- uses: ./.github/actions/php-composer-setup
- run: composer test
env:
WP_SQLITE_MODE: enabled