Skip to content

Commit b2db7d1

Browse files
committed
Removing wdio tests.
1 parent 9fdd24d commit b2db7d1

2 files changed

Lines changed: 0 additions & 223 deletions

File tree

.github/workflows/dotnet-core-master.yml

Lines changed: 0 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -41,119 +41,6 @@ jobs:
4141
with:
4242
name: items-planning-container
4343
path: items-planning-container.tar
44-
test:
45-
needs: build
46-
runs-on: ubuntu-22.04
47-
strategy:
48-
fail-fast: false
49-
matrix:
50-
test: [a,b,c]
51-
steps:
52-
- uses: actions/checkout@v3
53-
with:
54-
path: main
55-
- uses: actions/download-artifact@v4
56-
with:
57-
name: items-planning-container
58-
- run: docker load -i items-planning-container.tar
59-
- name: Create docker network
60-
run: docker network create --driver bridge --attachable data
61-
- name: Start MariaDB
62-
run: |
63-
docker pull mariadb:10.8
64-
docker run --name mariadbtest --network data -e MYSQL_ROOT_PASSWORD=secretpassword -p 3306:3306 -d mariadb:10.8
65-
- name: Start rabbitmq
66-
run: |
67-
docker pull rabbitmq:latest
68-
docker run -d --hostname my-rabbit --name some-rabbit --network data -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=password rabbitmq:latest
69-
- name: Sleep 15
70-
run: sleep 15
71-
- name: Start the newly build Docker container
72-
id: docker-run
73-
run: docker run --name my-container -p 4200:5000 --network data microtingas/frontend-container:latest "/ConnectionString=host=mariadbtest;Database=420_Angular;user=root;password=secretpassword;port=3306;Convert Zero Datetime = true;SslMode=none;" > docker_run_log 2>&1 &
74-
- name: Use Node.ts
75-
uses: actions/setup-node@v3
76-
with:
77-
node-version: 22
78-
- name: Extract branch name
79-
id: extract_branch
80-
run: echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
81-
- name: 'Preparing Frontend checkout'
82-
uses: actions/checkout@v2
83-
with:
84-
repository: microting/eform-angular-frontend
85-
ref: ${{ steps.extract_branch.outputs.BRANCH }}
86-
path: eform-angular-frontend
87-
- name: Copy dependencies
88-
run: |
89-
cp -av main/eform-client/src/app/plugins/modules/items-planning-pn eform-angular-frontend/eform-client/src/app/plugins/modules/items-planning-pn
90-
cp -av main/eform-client/e2e/Tests/items-planning-settings eform-angular-frontend/eform-client/e2e/Tests/items-planning-settings
91-
cp -av main/eform-client/e2e/Tests/items-planning-general eform-angular-frontend/eform-client/e2e/Tests/items-planning-general
92-
cp -av main/eform-client/e2e/Page\ objects/ItemsPlanning eform-angular-frontend/eform-client/e2e/Page\ objects/ItemsPlanning
93-
cp -av main/eform-client/e2e/Assets eform-angular-frontend/eform-client/e2e
94-
cp -av main/eform-client/wdio-headless-plugin-step2${{matrix.test}}.conf.ts eform-angular-frontend/eform-client/wdio-headless-plugin-step2${{matrix.test}}.conf.ts
95-
cp -av main/eform-client/wdio-plugin-step2.conf.ts eform-angular-frontend/eform-client/wdio-plugin-step2.conf.ts
96-
mkdir -p eform-angular-frontend/eform-client/cypress/e2e/plugins/
97-
cp -av main/eform-client/cypress/e2e/plugins/items-planning-pn eform-angular-frontend/eform-client/cypress/e2e/plugins/items-planning-pn
98-
#mkdir -p eform-angular-frontend/eFormAPI/eFormAPI.Web/Plugins
99-
#cp -av main/eFormAPI/eFormAPI.Web/Plugins/ItemsPlanning eform-angular-frontend/eFormAPI/eFormAPI.Web/Plugins/ItemsPlanning
100-
cd eform-angular-frontend/eform-client && ../../main/testinginstallpn.sh
101-
- name: yarn install
102-
run: cd eform-angular-frontend/eform-client && yarn install
103-
- name: Create errorShots directory
104-
run: mkdir /home/runner/work/eform-angular-items-planning-plugin/eform-angular-items-planning-plugin/eform-angular-frontend/eform-client/errorShots
105-
- name: Pretest changes to work with Docker container
106-
run: sed -i 's/localhost/mariadbtest/g' eform-angular-frontend/eform-client/e2e/Constants/DatabaseConfigurationConstants.ts
107-
- name: DB Configuration
108-
uses: cypress-io/github-action@v4
109-
with:
110-
start: echo 'hi'
111-
wait-on: "http://localhost:4200"
112-
wait-on-timeout: 120
113-
browser: chrome
114-
record: false
115-
spec: cypress/e2e/db/*
116-
config-file: cypress.config.ts
117-
working-directory: eform-angular-frontend/eform-client
118-
command-prefix: "--"
119-
- name: Load DB dump
120-
if: matrix.test == 'a'
121-
run: |
122-
docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'update 420_Angular.EformPlugins set Status = 1'
123-
docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'drop database `420_SDK`'
124-
docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'create database `420_SDK`'
125-
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
126-
- name: Change rabbitmq hostname
127-
if: ${{ matrix.test != 'a' }}
128-
run: docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'update 420_SDK.Settings set Value = "my-rabbit" where Name = "rabbitMqHost"'
129-
- name: ${{matrix.test}} test
130-
continue-on-error: true
131-
uses: cypress-io/github-action@v4
132-
with:
133-
start: echo 'hi'
134-
wait-on: "http://localhost:4200"
135-
wait-on-timeout: 120
136-
browser: chrome
137-
record: false
138-
spec: cypress/e2e/plugins/items-planning-pn/${{matrix.test}}/*
139-
config-file: cypress.config.ts
140-
working-directory: eform-angular-frontend/eform-client
141-
command-prefix: "--"
142-
- name: Plugin testing
143-
run: cd eform-angular-frontend/eform-client && npm run testheadlessplugin2${{matrix.test}}
144-
- name: The job has failed
145-
if: ${{ failure() }}
146-
run: |
147-
cat docker_run_log
148-
- name: Archive screenshot artifacts
149-
if: ${{ failure() }}
150-
uses: actions/upload-artifact@v4
151-
with:
152-
name: error Screenshots
153-
path: |
154-
/home/runner/work/eform-angular-items-planning-plugin/eform-angular-items-planning-plugin/eform-angular-frontend/eform-client/errorShots/chrome*.png
155-
/home/runner/work/eform-angular-items-planning-plugin/eform-angular-items-planning-plugin/eform-angular-frontend/eform-client/cypress/videos/*.mp4
156-
retention-days: 2
15744
test-dotnet:
15845
runs-on: ubuntu-latest
15946
steps:

.github/workflows/dotnet-core-pr.yml

Lines changed: 0 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -38,116 +38,6 @@ jobs:
3838
with:
3939
name: items-planning-container
4040
path: items-planning-container.tar
41-
test:
42-
needs: build
43-
runs-on: ubuntu-22.04
44-
strategy:
45-
fail-fast: false
46-
matrix:
47-
test: [a,b,c]
48-
steps:
49-
- uses: actions/checkout@v3
50-
with:
51-
path: main
52-
- uses: actions/download-artifact@v4
53-
with:
54-
name: items-planning-container
55-
- run: docker load -i items-planning-container.tar
56-
- name: Create docker network
57-
run: docker network create --driver bridge --attachable data
58-
- name: Start MariaDB
59-
run: |
60-
docker pull mariadb:10.8
61-
docker run --name mariadbtest --network data -e MYSQL_ROOT_PASSWORD=secretpassword -p 3306:3306 -d mariadb:10.8
62-
- name: Start rabbitmq
63-
run: |
64-
docker pull rabbitmq:latest
65-
docker run -d --hostname my-rabbit --name some-rabbit --network data -e RABBITMQ_DEFAULT_USER=admin -e RABBITMQ_DEFAULT_PASS=password rabbitmq:latest
66-
- name: Sleep 15
67-
run: sleep 15
68-
- name: Start the newly build Docker container
69-
id: docker-run
70-
run: docker run --name my-container -p 4200:5000 --network data microtingas/frontend-container:latest "/ConnectionString=host=mariadbtest;Database=420_Angular;user=root;password=secretpassword;port=3306;Convert Zero Datetime = true;SslMode=none;" > docker_run_log 2>&1 &
71-
- name: Use Node.ts
72-
uses: actions/setup-node@v3
73-
with:
74-
node-version: 22
75-
- name: 'Preparing Frontend checkout'
76-
uses: actions/checkout@v3
77-
with:
78-
repository: microting/eform-angular-frontend
79-
ref: stable
80-
path: eform-angular-frontend
81-
- name: Copy dependencies
82-
run: |
83-
cp -av main/eform-client/src/app/plugins/modules/items-planning-pn eform-angular-frontend/eform-client/src/app/plugins/modules/items-planning-pn
84-
cp -av main/eform-client/e2e/Tests/items-planning-settings eform-angular-frontend/eform-client/e2e/Tests/items-planning-settings
85-
cp -av main/eform-client/e2e/Tests/items-planning-general eform-angular-frontend/eform-client/e2e/Tests/items-planning-general
86-
cp -av main/eform-client/e2e/Page\ objects/ItemsPlanning eform-angular-frontend/eform-client/e2e/Page\ objects/ItemsPlanning
87-
cp -av main/eform-client/e2e/Assets eform-angular-frontend/eform-client/e2e
88-
mkdir -p eform-angular-frontend/eform-client/cypress/e2e/plugins/
89-
cp -av main/eform-client/cypress/e2e/plugins/items-planning-pn eform-angular-frontend/eform-client/cypress/e2e/plugins/items-planning-pn
90-
cp -av main/eform-client/wdio-headless-plugin-step2${{matrix.test}}.conf.ts eform-angular-frontend/eform-client/wdio-headless-plugin-step2${{matrix.test}}.conf.ts
91-
cp -av main/eform-client/wdio-plugin-step2.conf.ts eform-angular-frontend/eform-client/wdio-plugin-step2.conf.ts
92-
#mkdir -p eform-angular-frontend/eFormAPI/eFormAPI.Web/Plugins
93-
#cp -av main/eFormAPI/eFormAPI.Web/Plugins/ItemsPlanning eform-angular-frontend/eFormAPI/eFormAPI.Web/Plugins/ItemsPlanning
94-
cd eform-angular-frontend/eform-client && ../../main/testinginstallpn.sh
95-
- name: yarn install
96-
run: cd eform-angular-frontend/eform-client && yarn install
97-
- name: Create errorShots directory
98-
run: mkdir /home/runner/work/eform-angular-items-planning-plugin/eform-angular-items-planning-plugin/eform-angular-frontend/eform-client/errorShots
99-
- name: Pretest changes to work with Docker container
100-
run: sed -i 's/localhost/mariadbtest/g' eform-angular-frontend/eform-client/e2e/Constants/DatabaseConfigurationConstants.ts
101-
- name: DB Configuration
102-
uses: cypress-io/github-action@v4
103-
with:
104-
start: echo 'hi'
105-
wait-on: "http://localhost:4200"
106-
wait-on-timeout: 120
107-
browser: chrome
108-
record: false
109-
spec: cypress/e2e/db/*
110-
config-file: cypress.config.ts
111-
working-directory: eform-angular-frontend/eform-client
112-
command-prefix: "--"
113-
- name: Load DB dump
114-
if: matrix.test == 'a'
115-
run: |
116-
docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'update 420_Angular.EformPlugins set Status = 1'
117-
docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'drop database `420_SDK`'
118-
docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'create database `420_SDK`'
119-
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
120-
- name: Change rabbitmq hostname
121-
if: ${{ matrix.test != 'a' }}
122-
run: docker exec -i mariadbtest mysql -u root --password=secretpassword -e 'update 420_SDK.Settings set Value = "my-rabbit" where Name = "rabbitMqHost"'
123-
- name: ${{matrix.test}} test
124-
continue-on-error: true
125-
uses: cypress-io/github-action@v4
126-
with:
127-
start: echo 'hi'
128-
wait-on: "http://localhost:4200"
129-
wait-on-timeout: 120
130-
browser: chrome
131-
record: false
132-
spec: cypress/e2e/plugins/items-planning-pn/${{matrix.test}}/*
133-
config-file: cypress.config.ts
134-
working-directory: eform-angular-frontend/eform-client
135-
command-prefix: "--"
136-
- name: Plugin testing
137-
run: cd eform-angular-frontend/eform-client && npm run testheadlessplugin2${{matrix.test}}
138-
- name: The job has failed
139-
if: ${{ failure() }}
140-
run: |
141-
cat docker_run_log
142-
- name: Archive screenshot artifacts
143-
if: ${{ failure() }}
144-
uses: actions/upload-artifact@v4
145-
with:
146-
name: error Screenshots
147-
path: |
148-
/home/runner/work/eform-angular-items-planning-plugin/eform-angular-items-planning-plugin/eform-angular-frontend/eform-client/errorShots/chrome*.png
149-
/home/runner/work/eform-angular-items-planning-plugin/eform-angular-items-planning-plugin/eform-angular-frontend/eform-client/cypress/videos/*.mp4
150-
retention-days: 2
15141
test-dotnet:
15242
runs-on: ubuntu-latest
15343
steps:

0 commit comments

Comments
 (0)