Skip to content

Commit 1c77335

Browse files
authored
add new workflow (#191)
* add new workflow * add composer dependencies * install php/composer outside docker compose * install depd * specify docker compose path * fix path * specify service web * update phpopenldaper
1 parent 6201b37 commit 1c77335

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/functional.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: docker-compose-phpunit-functional
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
docker-compose-phpunit-functional:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: setup PHP
14+
uses: shivammathur/setup-php@v2
15+
with:
16+
php-version: "8.3"
17+
tools: composer
18+
- name: install composer dependencies
19+
run: composer update
20+
- name: Run docker compose
21+
uses: hoverkraft-tech/[email protected]
22+
with:
23+
compose-file: "./tools/docker-dev/docker-compose.yml"
24+
- name: Execute tests in the running services
25+
run: docker compose -f ./tools/docker-dev/docker-compose.yml exec -w '/var/www/unity-web-portal' web ./vendor/bin/phpunit --testsuite=functional

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"psr/log": "1.1.4",
44
"phpseclib/phpseclib": "3.0.43",
55
"phpmailer/phpmailer": "6.6.4",
6-
"hakasapl/phpopenldaper": "1.0.5"
6+
"hakasapl/phpopenldaper": "1.0.6"
77
},
88
"require-dev": {
99
"phpunit/phpunit": "<12.1"

0 commit comments

Comments
 (0)