Skip to content

Commit 53bac4f

Browse files
authored
Update deploy.yml
1 parent c0f76ba commit 53bac4f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,32 @@ on:
88
- develop
99

1010
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
services:
14+
mongo:
15+
image: mongo:6
16+
ports: [ "27017:27017" ]
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: Setup Node
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: 18
24+
25+
- name: Install backend deps & run tests
26+
working-directory: backend
27+
run: |
28+
npm install
29+
npm test
30+
31+
- name: Install frontend deps & run tests
32+
working-directory: frontend
33+
run: |
34+
npm install
35+
npm test
36+
1137
deploy:
1238
runs-on: ubuntu-latest
1339
steps:

0 commit comments

Comments
 (0)