Compare commits
36 commits
main
...
ci_mobiliz
Author | SHA1 | Date | |
---|---|---|---|
49dbe64935 | |||
1fc96a5ff1 | |||
9d0355c531 | |||
29cc49e422 | |||
fb62555901 | |||
8d96062fc8 | |||
f8c7dc5ff7 | |||
923d9db50c | |||
2874ba7544 | |||
90a2cee960 | |||
9aff86a074 | |||
5de7456c98 | |||
d3f42fd23d | |||
c2c2451c3d | |||
5cf40b6a70 | |||
fb6f3b64f4 | |||
d41d9222ce | |||
f0b9954f99 | |||
4660c7402b | |||
eb1611cd00 | |||
780dc6f18a | |||
b4685a62e1 | |||
384640a254 | |||
29e4ebdd5a | |||
9560ce49cd | |||
71f5197447 | |||
263864cbe8 | |||
59e21f1cf2 | |||
34be1cefb4 | |||
6d120b5574 | |||
74536c7a80 | |||
0389f7a89c | |||
7700dc2b2e | |||
b0b105eea5 | |||
7d670c284d | |||
e1a5f3d0ed |
2 changed files with 114 additions and 0 deletions
62
.forgejo/workflows/e2e_gancio.yml
Normal file
62
.forgejo/workflows/e2e_gancio.yml
Normal file
|
@ -0,0 +1,62 @@
|
|||
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
|
||||
postgres:
|
||||
image: postgres
|
||||
env:
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
gancio:
|
||||
image: cisti/gancio
|
||||
env:
|
||||
NODE_ENV: production
|
||||
GANCIO_DB_DIALECT: sqlite
|
||||
GANCIO_DB_STORAGE: ./gancio.sqlite
|
||||
cmd:
|
||||
- '-p 127.0.0.1:13120:13120'
|
||||
strategy:
|
||||
matrix:
|
||||
php-version: ['8.1']
|
||||
name: PHPUnit – PHP ${{ matrix.php-version }}
|
||||
env:
|
||||
extensions: mysql
|
||||
key: cache-v1
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
|
||||
- run: sleep 1
|
||||
- run: curl -L 127.0.0.1:13120/setup/0
|
||||
- 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"}}'
|
||||
|
52
.forgejo/workflows/e2e_mobilizon.yml
Normal file
52
.forgejo/workflows/e2e_mobilizon.yml
Normal file
|
@ -0,0 +1,52 @@
|
|||
name: PHPUnit
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- ci_mobilizon
|
||||
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
|
||||
postgres:
|
||||
image: docker.io/postgis/postgis:15-3.4
|
||||
env:
|
||||
POSTGRES_USER: mobilizon
|
||||
POSTGRES_PASSWORD: mobilizon
|
||||
POSTGRES_DB: mobilizon
|
||||
cmd:
|
||||
- '-p 127.0.0.1:5432:5432'
|
||||
mobilizon:
|
||||
image: docker.io/framasoft/mobilizon
|
||||
env:
|
||||
MOBILIZON_INSTANCE_NAME: Mobilizon
|
||||
MOBILIZON_INSTANCE_HOST: localhost
|
||||
MOBILIZON_INSTANCE_LISTEN_IP: "127.0.0.1"
|
||||
MOBILIZON_INSTANCE_PORT: "4000"
|
||||
MOBILIZON_DATABASE_HOST: "127.0.0.1"
|
||||
MOBILIZON_DATABASE_PORT: "5432"
|
||||
cmd:
|
||||
- '-p 127.0.0.1:4000:4000'
|
||||
strategy:
|
||||
matrix:
|
||||
php-version: ['8.1']
|
||||
name: PHPUnit – PHP ${{ matrix.php-version }}
|
||||
env:
|
||||
extensions: mysql
|
||||
key: cache-v1
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
|
||||
- run: sleep 1
|
||||
- run: curl -L 127.0.0.1:4000
|
Loading…
Reference in a new issue