This commit is contained in:
loviuz 2021-05-15 16:25:56 +02:00 committed by GitHub
parent cad519009d
commit 182843fe79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 12 deletions

View File

@ -9,9 +9,6 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: /var/www/html/openstamanager
strategy:
matrix:
@ -21,9 +18,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Creating working directory
run: sudo mkdir /var/www/html/openstamanager
- name: Startup Apache2
run: sudo service apache2 start
@ -105,11 +99,6 @@ jobs:
yarn install
npm run build-OSM
- name: Move OSM to apache directory
run: |
sudo mv ../openstamanager /var/www/html/openstamanager
sudo chmod -R 0777 /var/www/html/openstamanager
- name: Check out test repository
uses: actions/checkout@v2
with:
@ -126,7 +115,7 @@ jobs:
- name: Init test configuration
run: |
cd python-tests/
echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/openstamanager\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json
echo -ne "{\n \"login\": {\n \"password\": \"admin\",\n \"username\": \"admin\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"user\": \"root\",\n \"pass\": \"root\",\n \"name\": \"osm\"\n },\n \"server\": \"http://localhost/\",\n \"browser\": \"firefox\",\n \"headless\": true\n}" > config.json
pytest Init.py
- name: Execute tests