Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .ddev/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ database:
version: "8.0"
use_dns_when_possible: true
composer_version: "2"
nodejs_version: "22"
nodejs_version: "22.12.0"
corepack_enable: false
override_config: true
hooks:
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Build Theme

on:
pull_request:
branches:
- main

concurrency:
group: build-${{ github.head_ref }}
cancel-in-progress: true

jobs:
build:
name: Build Theme
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22.12.0

# Set up composer caching
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

# Build theme
- name: Install Theme Dependencies
uses: "php-actions/composer@v6"
with:
php_version: "8.2"
dev: no
args: "--optimize-autoloader"
working_dir: wp-content/themes/wp-starter

- name: Build Theme
run: |
npm ci
npm run build
working-directory: wp-content/themes/wp-starter

# Install viget-wp composer dependencies
- name: Install viget-wp Dependencies
uses: "php-actions/composer@v6"
with:
php_version: "8.2"
dev: no
args: "--optimize-autoloader"
working_dir: wp-content/mu-plugins/viget-wp

- name: Build Success
run: echo "✅ Theme build completed successfully!"
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
node-version: 22.12.0

# Set up composer caching
- name: Cache Composer dependencies
Expand Down
Loading