Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions .github/workflows/dotnet-core-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ jobs:
items-planning-playwright-test:
needs: build
runs-on: ubuntu-22.04
continue-on-error: ${{ matrix.test == 'a' }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -130,20 +129,16 @@ jobs:
run: |
cd eform-angular-frontend/eform-client
npx playwright test playwright/e2e/Tests/database-configuration/
- name: Load DB dump
if: matrix.test == 'a'
run: |
docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'update 420_Angular.EformPlugins set Status = 1'
docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'drop database `420_SDK`'
docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'create database `420_SDK`'
docker exec -i mariadbtest mysql -u root --password=secretpassword 420_SDK < eform-angular-frontend/eform-client/cypress/e2e/plugins/items-planning-pn/a/420_sdk.sql
- name: Change rabbitmq hostname
if: ${{ matrix.test != 'a' }}
run: docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'update 420_SDK.Settings set Value = "my-rabbit" where Name = "rabbitMqHost"'
- name: Enable plugins
if: ${{ matrix.test != 'a' }}
- name: Set plugin status
# Shard a sets the plugin to disabled (1) because its spec activates it
# through the UI. Shards b and c start with it enabled (2).
# The restart picks up this status and the rabbitmq host set above.
env:
PLUGIN_STATUS: ${{ matrix.test == 'a' && 1 || 2 }}
run: |
docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'update 420_Angular.EformPlugins set Status = 2'
docker exec -i mariadbtest mysql -u root --password=secretpassword -e "update 420_Angular.EformPlugins set Status = $PLUGIN_STATUS"
docker restart my-container
sleep 15
- name: Get standard output
Expand Down
19 changes: 7 additions & 12 deletions .github/workflows/dotnet-core-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ jobs:
items-planning-playwright-test:
needs: build
runs-on: ubuntu-22.04
continue-on-error: ${{ matrix.test == 'a' }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -124,20 +123,16 @@ jobs:
run: |
cd eform-angular-frontend/eform-client
npx playwright test playwright/e2e/Tests/database-configuration/
- name: Load DB dump
if: matrix.test == 'a'
run: |
docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'update 420_Angular.EformPlugins set Status = 1'
docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'drop database `420_SDK`'
docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'create database `420_SDK`'
docker exec -i mariadbtest mysql -u root --password=secretpassword 420_SDK < eform-angular-frontend/eform-client/cypress/e2e/plugins/items-planning-pn/a/420_sdk.sql
- name: Change rabbitmq hostname
if: ${{ matrix.test != 'a' }}
run: docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'update 420_SDK.Settings set Value = "my-rabbit" where Name = "rabbitMqHost"'
- name: Enable plugins
if: ${{ matrix.test != 'a' }}
- name: Set plugin status
# Shard a sets the plugin to disabled (1) because its spec activates it
# through the UI. Shards b and c start with it enabled (2).
# The restart picks up this status and the rabbitmq host set above.
env:
PLUGIN_STATUS: ${{ matrix.test == 'a' && 1 || 2 }}
run: |
docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'update 420_Angular.EformPlugins set Status = 2'
docker exec -i mariadbtest mysql -u root --password=secretpassword -e "update 420_Angular.EformPlugins set Status = $PLUGIN_STATUS"
docker restart my-container
sleep 15
- name: Get standard output
Expand Down
Loading
Loading