3574fe9beb
Integration Tests / Integration Tests (pull_request) Failing after 48s
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
name: Integration Tests
|
|
|
|
on:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
name: Integration Tests
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
mongo:
|
|
image: mongo:7
|
|
ports:
|
|
- 27017:27017
|
|
|
|
steps:
|
|
- name: Retrieve Server Install Action
|
|
uses: actions/checkout@v6.0.2
|
|
with:
|
|
repository: Nodarx/action-server-install
|
|
ref: main
|
|
path: action-server-install
|
|
github-server-url: https://git.ktrix.dev
|
|
|
|
- name: Install server
|
|
uses: ./action-server-install
|
|
with:
|
|
install-php: 'true'
|
|
php-version: '8.5'
|
|
server-path: './server'
|
|
database-uri: 'mongodb://127.0.0.1:27017/?tls=false'
|
|
database-name: 'ktrix_ci'
|
|
app-environment: 'test'
|
|
|
|
- name: Checkout module under test
|
|
uses: actions/checkout@v6.0.2
|
|
with:
|
|
repository: ${{ github.repository }}
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
path: server/modules/authentication_provider_password
|
|
github-server-url: https://git.ktrix.dev
|
|
|
|
- name: Install and enable module
|
|
working-directory: server
|
|
run: |
|
|
php bin/console module:install authentication_provider_password
|
|
php bin/console module:enable authentication_provider_password
|
|
|
|
- name: Run integration tests
|
|
working-directory: server/modules/authentication_provider_password
|
|
run: composer test:integration
|