Skip to content

wip

wip #8

Workflow file for this run

name: Test
on:
push:
defaults:
run:
shell: bash
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
# Test node 18/20/22/24 on ubuntu
# Test node 24 on macos/windows
# Enable annotations only for node 24 + ubuntu
matrix:
os: [ubuntu-latest]
php: ['8.1']
wordpress: ['6.6.4']
services:
s3:
image: adobe/s3mock
ports:
- 9090:9090
- 9191:9191
env:
COM_ADOBE_TESTING_S3MOCK_STORE_INITIAL_BUCKETS: "test-bucket"
debug: true
trace: true
options: --health-cmd="curl http://127.0.0.1:9090" --health-interval=5s --health-timeout=2s --health-retries=3
# mysql:
# image: mysql:8
# env:
# MYSQL_RANDOM_ROOT_PASSWORD: 1
# MYSQL_DATABASE: wp_tests_db
# MYSQL_USER: wp_test
# MYSQL_PASSWORD: password
# MYSQL_HOST: 127.0.0.1
# ports:
# - 3306:3306
# options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
steps:
- name: setup s3 bucket
run: |
curl http://127.0.0.1:9090
# - uses: shivammathur/setup-php@v2
# with:
# php-version: ${{ matrix.php }}
# tools: phpunit:9
# extensions: imagick
# - name: checkout
# uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
# - name: setup wordpress tests
# env:
# WP_VERSION: ${{ matrix.wordpress }}
# run: |
# bash bin/install-wp-tests.sh wp_tests_db wp_test password 127.0.0.1 $WP_VERSION
# - name: setup s3 bucket
# run: |
# curl "http://127.0.0.1:9000/ui/test-bucket?create"
# curl "http://127.0.0.1:9000/ui/test-bucket?make-public"
# - name: test
# env:
# S3_UPLOADS_BUCKET: test-bucket
# S3_UPLOADS_KEY: AKIAIOSFODNN7EXAMPLE
# S3_UPLOADS_SECRET: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
# S3_UPLOADS_BUCKET_URL: "http://127.0.0.1:9000"
# S3_UPLOADS_REGION: ''
# run: |
# phpunit