Refactored Dockerfiles to use newest build features #782
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
name: B2B + B2C Demoshop tests | |
on: | |
- push | |
env: | |
SPRYKER_TESTING_ENABLED: 1 | |
PROJECT: suite | |
jobs: | |
functional_test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
platform-image: [ | |
'spryker/php:8.1-alpine3.16', | |
'spryker/php:8.1-debian' | |
] | |
application-store: [ 'DE' ] | |
env: [ | |
'ci.mysql', | |
'ci.pgsql' | |
] | |
repo: [ | |
'https://github.com/spryker-shop/b2b-demo-shop.git', | |
'https://github.com/spryker-shop/b2c-demo-shop.git' | |
] | |
name: "Function Tests(Image: ${{ matrix.platform-image }}, Environment: ${{ matrix.env }}, Repo: ${{ matrix.repo }})" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Clone demo shop | |
run: cd ../ && git clone --depth=3 --branch=master ${{ matrix.repo }} demo-shop && cp -R docker-sdk demo-shop | |
- name: Provide env variables | |
run: | | |
export SPRYKER_PLATFORM_IMAGE=${{ matrix.platform-image}} | |
export APPLICATION_ENV=${{ matrix.env }} | |
export APPLICATION_STORE=${{ matrix.application-store }} | |
- name: Run script | |
run: | | |
cd ../demo-shop | |
docker-sdk/sdk boot deploy.ci.functional.mariadb.yml -v | |
docker-sdk/sdk up -t -v | |
docker-sdk/sdk testing codecept run -c codeception.ci.functional.yml | |
glue_test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
platform-image: [ | |
'spryker/php:8.1-alpine3.16', | |
'spryker/php:8.1-debian' | |
] | |
application-store: [ 'DE' ] | |
env: [ | |
'ci.mysql', | |
'ci.pgsql' | |
] | |
repo: [ | |
'https://github.com/spryker-shop/b2b-demo-shop.git', | |
'https://github.com/spryker-shop/b2c-demo-shop.git' | |
] | |
name: "Glue Tests(Image: ${{ matrix.platform-image }}, Environment: ${{ matrix.env }}, Repo: ${{ matrix.repo }})" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Clone demo shop | |
run: cd ../ && git clone --depth=3 --branch=master ${{ matrix.repo }} demo-shop && cp -R docker-sdk demo-shop | |
- name: Provide env variables | |
run: | | |
export SPRYKER_PLATFORM_IMAGE=${{ matrix.platform-image}} | |
export APPLICATION_ENV=${{ matrix.env }} | |
export APPLICATION_STORE=${{ matrix.application-store }} | |
- name: Run script | |
run: | | |
cd ../demo-shop | |
docker-sdk/sdk boot deploy.ci.api.yml -v | |
docker-sdk/sdk up -t -v | |
docker-sdk/sdk testing codecept fixtures | |
docker-sdk/sdk testing console queue:worker:start --stop-when-empty | |
docker-sdk/sdk testing codecept run -c codeception.api.yml |