-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (58 loc) · 1.58 KB
/
test.yml
File metadata and controls
64 lines (58 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Test
on:
push:
defaults:
run:
shell: bash
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
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"
COM_ADOBE_TESTING_S3MOCK_STORE_VALID_KMS_KEYS: "arn:aws:kms:us-east-1:1234567890:key/valid-secret"
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:
- 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: test
env:
S3_UPLOADS_BUCKET: test-bucket
S3_UPLOADS_KEY: 1234567890
S3_UPLOADS_SECRET: valid-secret
S3_UPLOADS_BUCKET_URL: "http://127.0.0.1:9090"
S3_UPLOADS_REGION: ''
run: |
phpunit