Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Merge pull request #48 from ExtensiveAutomation/dependabot/pip/src/js… #175

Merge pull request #48 from ExtensiveAutomation/dependabot/pip/src/js…

Merge pull request #48 from ExtensiveAutomation/dependabot/pip/src/js… #175

Workflow file for this run

name: Docker Image
on:
push:
branches:
- master
- unstable
pull_request:
branches:
- master
- unstable
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: |
# build image
docker build ./src --file ./src/Dockerfile -t extensiveautomation-server
- name: Start the container
run: |
# start the container
docker run -d -p 8081:8081 -p 8082:8082 -p 8083:8083 --name=extensive-server extensiveautomation-server
- name: Test the server
run: |
# install web plugin
ea="extensiveautomation"
es="extensive-server"
docker exec ${es} wget https://github.com/${ea}/${ea}-plugin-web/archive/master.zip
docker exec ${es} unzip master.zip
docker exec ${es} cp -rf ${ea}-plugin-web-master/src/ea/sutadapters/WEB/ ea/sutadapters/
docker exec ${es} ls ea/sutadapters/
docker exec ${es} cp -rf ${ea}-plugin-web-master/src/ea/var/tests/1/ ea/var/tests/
docker exec ${es} ls ea/var/tests/1/
docker exec ${es} python ${ea}.py --install-adapter WEB
# install python dependancies
pip install requests
# start to test the server
python -u ./tests/test_server.py