Skip to content

Commit 8c57573

Browse files
committed
Try run behat tests in github actions
1 parent 07c5795 commit 8c57573

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/tests.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,52 @@ jobs:
3737
- name: Run tests
3838
run: vendor/bin/phpunit --no-coverage
3939

40+
behat:
41+
name: Tests (Behat with PHP ${{ matrix.php }})
42+
runs-on: ubuntu-latest
43+
44+
services:
45+
redmine-60002:
46+
image: redmine:6.0.2
47+
ports:
48+
- "6002:3000"
49+
env:
50+
# Workaround: Remove secret for Rails 7.2 so it will be generated automatically
51+
# @see https://github.com/docker-library/redmine/issues/349#issuecomment-2516634932
52+
# REDMINE_SECRET_KEY_BASE: supersecretkey
53+
REDMINE_PLUGINS_MIGRATE: true
54+
volumes:
55+
- ./.docker/redmine-60002_data/files:/usr/src/redmine/files
56+
- ./.docker/redmine-60002_data/sqlite:/usr/src/redmine/sqlite
57+
58+
strategy:
59+
fail-fast: false
60+
matrix:
61+
operating-system: ["ubuntu-latest"]
62+
php: ["8.3"]
63+
64+
steps:
65+
- name: Checkout
66+
uses: actions/checkout@v4
67+
with:
68+
fetch-depth: 2
69+
70+
- name: Setup PHP, with composer and extensions
71+
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
72+
with:
73+
php-version: ${{ matrix.php }}
74+
tools: phpunit
75+
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite
76+
coverage: xdebug
77+
78+
# Install composer dependencies and handle caching in one go.
79+
# @link https://github.com/marketplace/actions/install-composer-dependencies
80+
- name: "Install Composer dependencies"
81+
uses: "ramsey/composer-install@v2"
82+
83+
- name: Run behat
84+
run: vendor/bin/behat --config tests/Behat/behat.yml --suite=redmine_60002
85+
4086
code-quality:
4187
name: Check ${{ matrix.tool }} (PHP ${{ matrix.php }})
4288
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)