Skip to content
Open
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
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test

on:
pull_request:
push:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: none

- name: PHP syntax
run: find . -name '*.php' -print0 | xargs -0 -n1 php -l

- name: Newsletter and theme checks
run: |
php tests/theme-design-static.php
php tests/comment-webhook-delivery.php
php tests/newsletter-weekly.php
3 changes: 3 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
// AutoJack newsletter signup form helper.
require_once get_template_directory() . '/inc/newsletter.php';

// Weekly issue. Automatic send stays off until Settings → Newsletter enables it.
require_once get_template_directory() . '/inc/newsletter-weekly.php';

// Comment webhook to the AutoJack hub (inert without wp-config constants).
require_once get_template_directory() . '/inc/comment-webhook.php';

Expand Down
Loading
Loading