1 parent c793066 commit 4add4f0Copy full SHA for 4add4f0
1 file changed
.github/workflows/ci.yml
@@ -6,7 +6,7 @@ on:
6
- main
7
pull_request:
8
9
-
+# Set defaults to backend folder for npm commands
10
defaults:
11
run:
12
working-directory: ./backend
@@ -16,24 +16,26 @@ jobs:
16
runs-on: ubuntu-latest
17
18
steps:
19
+
20
- name: Checkout repository
21
uses: actions/checkout@v3
22
23
24
- name: Setup Node.js
25
uses: actions/setup-node@v3
26
with:
27
node-version: 20
28
29
30
- name: Install dependencies
31
run: npm install
32
33
34
- name: Build TypeScript
35
run: npm run build
36
37
- name: Build Docker image
38
run: docker build -t my-api:${{ github.sha }} ./backend
39
40
+ - name: Build and run Docker Compose
41
+ run: docker-compose -f ./docker-compose.yml up --build -d
0 commit comments