wordpress-activitypub-event.../.forgejo/workflows/e2e_gancio.yml

63 lines
1.8 KiB
YAML
Raw Normal View History

2024-09-23 16:40:26 +02:00
name: PHPUnit
on:
push:
branches:
- ci_gancio
pull_request:
env:
WP_TESTS_DIR: /workspace/wordpress-test-lib
WP_CORE_DIR: /workspace/wordpress
jobs:
phpunit:
runs-on: ubuntu-latest
services:
mysql:
image: mariadb
env:
MYSQL_ROOT_PASSWORD: root
2024-09-23 18:38:33 +02:00
postgres:
2024-09-23 18:39:40 +02:00
image: postgres
2024-09-23 18:38:33 +02:00
env:
2024-09-23 18:39:04 +02:00
POSTGRES_HOST_AUTH_METHOD: trust
2024-09-23 16:40:26 +02:00
gancio:
2024-09-23 18:12:34 +02:00
image: cisti/gancio
2024-09-23 16:44:15 +02:00
env:
2024-09-23 16:47:06 +02:00
NODE_ENV: production
GANCIO_DB_DIALECT: sqlite
GANCIO_DB_STORAGE: ./gancio.sqlite
2024-09-23 18:16:49 +02:00
cmd:
- '-p 127.0.0.1:13120:13120'
2024-09-23 16:40:26 +02:00
strategy:
matrix:
2024-09-23 16:41:54 +02:00
php-version: ['8.1']
2024-09-23 16:40:26 +02:00
name: PHPUnit PHP ${{ matrix.php-version }}
env:
extensions: mysql
key: cache-v1
steps:
- name: Checkout
uses: https://code.forgejo.org/actions/checkout@v4
2024-09-23 18:25:38 +02:00
- run: sleep 1
2024-09-23 18:43:24 +02:00
- run: curl -L 127.0.0.1:13120/setup/0
2024-09-23 18:47:16 +02:00
- run: |
curl 'http://localhost:13120/api/setup/db'
--compressed -X POST
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0'
-H 'Accept: application/json, text/plain, */*'
-H 'Accept-Language: en-US,en;q=0.5'
-H 'Accept-Encoding: gzip, deflate, br, zstd' -H 'Content-Type: application/json'
-H 'Origin: http://localhost:13120'
-H 'Connection: keep-alive'
-H 'Referer: http://localhost:13120/setup/0'
-H 'Cookie: i18n_redirected=en; auth.strategy=local'
-H 'Sec-Fetch-Dest: empty'
-H 'Sec-Fetch-Mode: cors'
-H 'Sec-Fetch-Site: same-origin'
-H 'Priority: u=0'
--data-raw '{"db":{"dialect":"sqlite","storage":"./gancio.sqlite","host":"localhost","database":"gancio","password":"gancio"}}'
2024-09-23 18:25:38 +02:00