From 530bb4969402406887db066c5a162107eda12cc8 Mon Sep 17 00:00:00 2001 From: Walmyr Date: Fri, 17 May 2024 01:29:16 +0200 Subject: [PATCH] Configure CI using docker for the backend This is just an experiment. --- .github/workflows/ci.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cca4366..9723a5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,14 +32,14 @@ jobs: gui-tests: needs: eslint runs-on: ubuntu-latest + services: + engagesphere-backend: + image: wlsf82/engagesphereserver:amd64 + ports: + - 3001:3001 steps: - name: Checkout uses: actions/checkout@v4 - - name: Install backend modules - uses: cypress-io/github-action@v6 - with: - install-command: npm run install:backend - runTests: false - name: Install frontend modules uses: cypress-io/github-action@v6 with: @@ -48,21 +48,21 @@ jobs: - name: Run frontend GUI tests 🧪 uses: cypress-io/github-action@v6 with: - start: npm run start:frontend, npm run start:server + start: npm run start:frontend command: npm run test:frontend:gui:cloud env: CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} api-tests: needs: eslint runs-on: ubuntu-latest + services: + engagesphere-backend: + image: wlsf82/engagesphereserver:amd64 + ports: + - 3001:3001 steps: - name: Checkout uses: actions/checkout@v4 - - name: Install backend modules - uses: cypress-io/github-action@v6 - with: - install-command: npm run install:backend - runTests: false - name: Install frontend modules uses: cypress-io/github-action@v6 with: @@ -71,7 +71,7 @@ jobs: - name: Run API tests 🧪 uses: cypress-io/github-action@v6 with: - start: npm run start:frontend, npm run start:server + start: npm run start:frontend command: npm run test:api:cloud env: CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}