Skip to content

Commit 47f2697

Browse files
github workflow added
1 parent 4add4f0 commit 47f2697

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77
pull_request:
88

9-
# Set defaults to backend folder for npm commands
9+
1010
defaults:
1111
run:
1212
working-directory: ./backend
@@ -16,26 +16,26 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
19+
2020
- name: Checkout repository
2121
uses: actions/checkout@v3
2222

23-
2423
- name: Setup Node.js
2524
uses: actions/setup-node@v3
2625
with:
2726
node-version: 20
2827

29-
3028
- name: Install dependencies
3129
run: npm install
3230

33-
3431
- name: Build TypeScript
3532
run: npm run build
3633

3734
- name: Build Docker image
3835
run: docker build -t my-api:${{ github.sha }} ./backend
3936

37+
4038
- name: Build and run Docker Compose
41-
run: docker-compose -f ./docker-compose.yml up --build -d
39+
working-directory: ./
40+
run: docker-compose -f docker-compose.yml up --build -d
41+

0 commit comments

Comments
 (0)