From 26666f61c18455aa623169f0ebaa197a184dff55 Mon Sep 17 00:00:00 2001 From: Nicolae Mogage Date: Fri, 16 Aug 2024 16:19:18 +0300 Subject: [PATCH] Add docker services --- .github/workflows/load-tests.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/load-tests.yml b/.github/workflows/load-tests.yml index a7fb6b1e8..9bfc6e8a7 100644 --- a/.github/workflows/load-tests.yml +++ b/.github/workflows/load-tests.yml @@ -28,6 +28,9 @@ jobs: - name: Copy devnet config file from src to dist run: cp ./config/config.devnet.yaml ./dist/config/config.yaml + - name: Start docker services + run: docker-compose up -d + - name: Start Node.js API run: node ./dist/src/main.js @@ -55,6 +58,9 @@ jobs: name: base-results path: k6/output/summary.json + - name: Stop docker services + run: docker-compose down + test-head: runs-on: ubuntu-latest @@ -80,10 +86,8 @@ jobs: - name: Copy devnet config file from src to dist run: cp ./config/config.devnet.yaml ./dist/config/config.yaml - - name: Check folder content - run: ls -la - - run: ls ./dist - - run: ls ./dist/config + - name: Start docker services + run: docker-compose up -d - name: Start Node.js API run: node ./dist/src/main.js @@ -112,6 +116,9 @@ jobs: name: head-results path: k6/output/summary.json + - name: Stop docker services + run: docker-compose down + compare-results: runs-on: ubuntu-latest