-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] non-existent references to BrowserContext in symfony behat bund…
…le @1.5
- Loading branch information
Ronny Gericke
committed
Nov 21, 2023
1 parent
10b5b17
commit bc9a1d1
Showing
15 changed files
with
118 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ orbs: | |
jobs: | ||
build: | ||
docker: | ||
- image: 'hgiesenow/php:7.4' | ||
- image: 'ghcr.io/elbformat/sulu-behat-bundle/php' | ||
steps: | ||
- checkout | ||
- run: 'composer install --dev' | ||
|
@@ -19,9 +19,9 @@ jobs: | |
paths: 'vendor' | ||
behat: | ||
docker: | ||
- image: 'hgiesenow/php:7.4' | ||
- image: 'ghcr.io/elbformat/sulu-behat-bundle/php' | ||
environment: | ||
DATABASE_URL: 'mysql://test:[email protected]:3306/test' | ||
DATABASE_URL: 'mysql://test:[email protected]:3306/test?serverVersion=mariadb-10.6.15' | ||
ELASTICSEARCH_HOST: '127.0.0.1:9200' | ||
- image: 'mariadb:10.6' | ||
environment: | ||
|
@@ -46,9 +46,9 @@ jobs: | |
file: 'build/coverage.xml' | ||
behat-admin: | ||
docker: | ||
- image: 'hgiesenow/php:7.4' | ||
- image: 'ghcr.io/elbformat/sulu-behat-bundle/php' | ||
environment: | ||
DATABASE_URL: 'mysql://test:[email protected]:3306/test' | ||
DATABASE_URL: 'mysql://test:[email protected]:3306/test?serverVersion=mariadb-10.6.15' | ||
ELASTICSEARCH_HOST: '127.0.0.1:9200' | ||
- image: 'mariadb:10.6' | ||
environment: | ||
|
@@ -74,7 +74,7 @@ jobs: | |
# Unittests are incomplete by now | ||
# phpunit: | ||
# docker: | ||
# - image: 'hgiesenow/php:7.4' | ||
# - image: 'hgiesenow/php:8.1' | ||
# steps: | ||
# - checkout | ||
# - attach_workspace: | ||
|
@@ -86,7 +86,7 @@ jobs: | |
# file: 'build/clover.xml' | ||
php-cs-fixer: | ||
docker: | ||
- image: 'hgiesenow/php:7.4' | ||
- image: 'ghcr.io/elbformat/sulu-behat-bundle/php' | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
|
@@ -95,7 +95,7 @@ jobs: | |
- run: 'vendor/bin/php-cs-fixer fix --diff --dry-run tests' | ||
psalm: | ||
docker: | ||
- image: 'hgiesenow/php:7.4' | ||
- image: 'ghcr.io/elbformat/sulu-behat-bundle/php' | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Create and publish a Docker image | ||
|
||
on: | ||
schedule: | ||
- cron: '0 9 1 * *' | ||
push: | ||
branches: | ||
- fix_non_existent_references | ||
- main | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }}/php | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 | ||
with: | ||
context: docker | ||
push: true | ||
#tags: ${{ steps.meta.outputs.tags }} | ||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
FROM hgiesenow/php:8.1 | ||
LABEL org.opencontainers.image.source="https://github.com/elbformat/sulu-behat-bundle" | ||
|
||
# For debugging | ||
RUN apk add --no-cache --virtual .build-deps autoconf g++ make linux-headers &&\ | ||
pecl install xdebug-3.2.0 && \ | ||
apk del .build-deps && \ | ||
rm -rf /tmp/* | ||
|
||
# ext-intl | ||
RUN apk add --no-cache icu icu-data-full && \ | ||
apk add --no-cache --virtual .build-deps icu-dev && \ | ||
docker-php-ext-install intl && \ | ||
apk del .build-deps && \ | ||
rm -rf /tmp/* | ||
|
||
# ext-gd | ||
RUN apk add --no-cache libpng libjpeg-turbo freetype && \ | ||
apk add --no-cache --virtual .build-deps libpng-dev libjpeg-turbo-dev freetype-dev && \ | ||
docker-php-ext-configure gd && \ | ||
docker-php-ext-install gd && \ | ||
apk del .build-deps && \ | ||
rm -rf /tmp/* | ||
|
||
# xdebug | ||
RUN apk add --no-cache --virtual .build-deps autoconf g++ make linux-headers && \ | ||
pecl install xdebug-3.2.1 && \ | ||
docker-php-ext-enable xdebug && \ | ||
apk del .build-deps && \ | ||
rm -rf /tmp/* | ||
|
||
# Database connection (for integration tests) | ||
RUN docker-php-ext-install pdo pdo_mysql | ||
|
||
# For codecov upload inside circleci | ||
RUN apk add gpg gpg-agent gpgv | ||
|
||
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer | ||
ENV COMPOSER_MEMORY_LIMIT=-1 | ||
|
||
COPY php.ini /usr/local/etc/php/conf.d/ | ||
|
||
WORKDIR /var/www |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
memory_limit = -1 | ||
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR | ||
display_errors = Off |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,13 @@ | |
|
||
namespace Elbformat\SuluBehatBundle\Context; | ||
|
||
use Elbformat\SymfonyBehatBundle\Context\BrowserContext as SymfonyBrowserContext; | ||
use Elbformat\SymfonyBehatBundle\Context\HttpContext; | ||
use Symfony\Component\HttpFoundation\Request; | ||
|
||
/** | ||
* @author Hannes Giesenow <[email protected]> | ||
*/ | ||
class BrowserContext extends SymfonyBrowserContext | ||
class BrowserContext extends HttpContext | ||
{ | ||
/** | ||
* @Given I am logged in as admin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters