Skip to content

Commit

Permalink
Remove behat github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Jan 21, 2025
1 parent 9498493 commit 639de57
Showing 1 changed file with 47 additions and 46 deletions.
93 changes: 47 additions & 46 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,52 +37,53 @@ jobs:
- name: Run tests
run: vendor/bin/phpunit --no-coverage

behat:
name: Tests (Behat with PHP ${{ matrix.php }})
runs-on: ubuntu-latest

services:
redmine-60002:
image: redmine:6.0.2
ports:
- "6002:3000"
env:
# Workaround: Remove secret for Rails 7.2 so it will be generated automatically
# @see https://github.com/docker-library/redmine/issues/349#issuecomment-2516634932
# REDMINE_SECRET_KEY_BASE: supersecretkey
REDMINE_PLUGINS_MIGRATE: true
volumes:
- /home/runner/work/_temp/redmine-60002_data/files:/usr/src/redmine/files
- /home/runner/work/_temp/redmine-60002_data/sqlite:/usr/src/redmine/sqlite
options: --health-cmd="wget -O /dev/null http://localhost:3000" --health-start-period=30s --health-interval=30s --health-timeout=30s --health-retries=3

strategy:
fail-fast: false
matrix:
operating-system: ["ubuntu-latest"]
php: ["8.3"]

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
with:
php-version: ${{ matrix.php }}
tools: phpunit
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite
coverage: xdebug

# Install composer dependencies and handle caching in one go.
# @link https://github.com/marketplace/actions/install-composer-dependencies
- name: "Install Composer dependencies"
uses: "ramsey/composer-install@v2"

- name: Run behat
run: vendor/bin/behat --config tests/Behat/behat.yml --profile=github-actions --suite=redmine_60002
# This does not work
# behat:
# name: Tests (Behat with PHP ${{ matrix.php }})
# runs-on: ubuntu-latest

# services:
# redmine-60002:
# image: redmine:6.0.2
# ports:
# - "6002:3000"
# env:
# # Workaround: Remove secret for Rails 7.2 so it will be generated automatically
# # @see https://github.com/docker-library/redmine/issues/349#issuecomment-2516634932
# # REDMINE_SECRET_KEY_BASE: supersecretkey
# REDMINE_PLUGINS_MIGRATE: true
# volumes:
# - /home/runner/work/_temp/redmine-60002_data/files:/usr/src/redmine/files
# - /home/runner/work/_temp/redmine-60002_data/sqlite:/usr/src/redmine/sqlite
# options: --health-cmd="wget -O /dev/null http://localhost:3000" --health-start-period=30s --health-interval=30s --health-timeout=30s --health-retries=3

# strategy:
# fail-fast: false
# matrix:
# operating-system: ["ubuntu-latest"]
# php: ["8.3"]

# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 2

# - name: Setup PHP, with composer and extensions
# uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
# with:
# php-version: ${{ matrix.php }}
# tools: phpunit
# extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite
# coverage: xdebug

# # Install composer dependencies and handle caching in one go.
# # @link https://github.com/marketplace/actions/install-composer-dependencies
# - name: "Install Composer dependencies"
# uses: "ramsey/composer-install@v2"

# - name: Run behat
# run: vendor/bin/behat --config tests/Behat/behat.yml --profile=github-actions --suite=redmine_60002

code-quality:
name: Check ${{ matrix.tool }} (PHP ${{ matrix.php }})
Expand Down

0 comments on commit 639de57

Please sign in to comment.