diff --git a/.github/workflows/integration-tests-docker.yml b/.github/workflows/integration-tests-docker.yml index e27df5978..96bdf0f98 100644 --- a/.github/workflows/integration-tests-docker.yml +++ b/.github/workflows/integration-tests-docker.yml @@ -72,6 +72,14 @@ jobs: docker-compose up -d fi + - name: Checkout API Mock Server + uses: actions/checkout@v3 + with: + repository: IMDA-BTG/api-model-server + token: ${{ secrets.CHECKOUT_TOKEN }} + ref: main + path: qa-test/api-model-server + - name: Checkout smoke tests uses: actions/checkout@v3 with: @@ -97,13 +105,23 @@ jobs: path: qa-test/backend-testing submodules: recursive - # - name: Run smoke tests - # if: ${{ ! cancelled() }} - # run: | - # cd qa-test/smoke-testing - # npm install - # npx playwright install - # npx playwright test + - name: Run API Mock Server + if: ${{ ! cancelled() }} + run: | + cd qa-test/api-model-server + python3 -m venv venv + source venv/bin/activate + pip3 install -r requirements.txt + bash regression_run_https.sh && fg & + bash classification_run_https.sh & + + - name: Run smoke tests + if: ${{ ! cancelled() }} + run: | + cd qa-test/smoke-testing + npm install + npx playwright install + ENVIRONMENT_URL=$ENVIRONMENT_URL npx playwright test - name: Run frontend tests if: ${{ ! cancelled() }}