Skip to content

Commit

Permalink
Update integration-tests-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
imda-benedictlee authored Feb 7, 2024
1 parent 47bfa73 commit 0a35d09
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/integration-tests-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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() }}
Expand Down

0 comments on commit 0a35d09

Please sign in to comment.