Skip to content

Run tests

Run tests #269

Workflow file for this run

name: Run tests
on:
workflow_dispatch:
push:
pull_request:
schedule:
# Every Wednesday at 4:00 UTC
- cron: '0 4 * * 3'
jobs:
test:
services:
mariadb:
image: mariadb
ports:
- 3306:3306
env:
MARIADB_ROOT_PASSWORD: root
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- name: Use php 8.1
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
- uses: actions/cache@v3
id: cache-wp-cli
with:
path: ~/.wp-cli/cache
key: ${{ runner.os }}-wp-cli
- name: Run tests
run: .github/run-tests