Skip to content

Commit d718bbc

Browse files
committed
Configure CI using docker for the backend
This is just an experiment.
1 parent ef5fc08 commit d718bbc

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ jobs:
3232
gui-tests:
3333
needs: eslint
3434
runs-on: ubuntu-latest
35+
services:
36+
engagesphere-backend:
37+
image: wlsf82/engagesphereserver:amd64
38+
ports:
39+
- 3001:3001
3540
steps:
3641
- name: Checkout
3742
uses: actions/checkout@v4
38-
- name: Install backend modules
39-
uses: cypress-io/github-action@v6
40-
with:
41-
install-command: npm run install:backend
42-
runTests: false
4343
- name: Install frontend modules
4444
uses: cypress-io/github-action@v6
4545
with:
@@ -48,21 +48,21 @@ jobs:
4848
- name: Run frontend GUI tests 🧪
4949
uses: cypress-io/github-action@v6
5050
with:
51-
start: npm run start:frontend, npm run start:server
51+
start: npm run start:frontend
5252
command: npm run test:frontend:gui:cloud
5353
env:
5454
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
5555
api-tests:
5656
needs: eslint
5757
runs-on: ubuntu-latest
58+
services:
59+
engagesphere-backend:
60+
image: wlsf82/engagesphereserver:amd64
61+
ports:
62+
- 3001:3001
5863
steps:
5964
- name: Checkout
6065
uses: actions/checkout@v4
61-
- name: Install backend modules
62-
uses: cypress-io/github-action@v6
63-
with:
64-
install-command: npm run install:backend
65-
runTests: false
6666
- name: Install frontend modules
6767
uses: cypress-io/github-action@v6
6868
with:
@@ -71,7 +71,7 @@ jobs:
7171
- name: Run API tests 🧪
7272
uses: cypress-io/github-action@v6
7373
with:
74-
start: npm run start:frontend, npm run start:server
74+
start: npm run start:frontend
7575
command: npm run test:api:cloud
7676
env:
7777
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}

0 commit comments

Comments
 (0)