Test #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
services: | |
db: | |
image: mariadb:lts | |
env: | |
MARIADB_ROOT_PASSWORD: wordpress | |
ports: | |
- 3306:3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5 | |
container: | |
image: ghcr.io/automattic/jetpack-wordpress-dev:latest | |
env: | |
WP_DOMAIN: localhost | |
WP_ADMIN_USER: wordpress | |
WP_ADMIN_EMAIL: [email protected] | |
WP_ADMIN_PASSWORD: wordpress | |
WP_TITLE: Hello World | |
MYSQL_HOST: db:3306 | |
MYSQL_DATABASE: wordpress | |
MYSQL_USER: root | |
MYSQL_PASSWORD: wordpress | |
HOST_PORT: 80 | |
ports: | |
- 80:80 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: trunk | |
- uses: actions/checkout@v4 | |
with: | |
path: commit | |
- name: Download a build | |
run: | | |
curl -L --fail https://api.github.com/repos/Automattic/jetpack/actions/artifacts/1401188156/zip --output build.zip | |
unzip build.zip | |
tar --xz -xvvf build.tar.xz build | |
- name: Prepare plugin zips | |
run: trunk/.github/files/test-plugin-update/prepare-zips.sh |