From 8b83aeedc4f1c2d2a1b7763f17e702f186fbd4b6 Mon Sep 17 00:00:00 2001 From: loviuz <1647128+loviuz@users.noreply.github.com> Date: Sat, 15 May 2021 16:41:32 +0200 Subject: [PATCH] CI --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 210170228..703c90f8a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,8 +8,25 @@ on: jobs: tests: + needs: build runs-on: ubuntu-latest + container: + image: php:7.4-apache + ports: + - 80:80 + options: --network-alias=testserver + + env: + TEST_BASE_URL: http://testserver + SELENIUM_HOST: http://selenium:4444/wd/hub + + services: + selenium: + image: selenium/standalone-chrome + ports: + - 4444:4444 + strategy: matrix: python-version: [3.9] @@ -105,6 +122,12 @@ jobs: repository: devcode-it/openstamanager-tests path: python-tests + - name: Copy OSM to www root + run: | + sudo cp -R * /var/www/html/ + sudo rm /var/www/html/index.html + sudo chmod -R 0777 /var/www/html/ + - name: Install Python dependencies run: | cd python-tests/