Skip to content

Commit

Permalink
update pull request action
Browse files Browse the repository at this point in the history
  • Loading branch information
hasanmd91 committed Jan 12, 2024
1 parent 1c66033 commit 47966a9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Run unit tests'
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
unit-test:
name: unit-test
runs-on: ubuntu-latest
steps:
- name: Checkout GitHub repo
uses: actions/checkout@v4
- name: Print message
run: echo "Testing started"
- name: Run unit test
run: dotnet test
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ WORKDIR /Ecom.WebAPI
RUN dotnet publish -c Release -o /publish

# Final stage/image
FROM mcr.microsoft.com/dotnet/sdk:7.0
FROM mcr.microsoft.com/dotnet/sdk:7.0
WORKDIR /
COPY --from=build /publish .
EXPOSE 8080
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ version: '3'
services:
# ilh-frontend service
ilh-frontend:
image: hasanmd91/ilh-frontend
image: hasanmd91/ilhfrontend
ports:
- '3000:3000'

# ilh-server service
ilh-server:
image: docker.io/library/ilh-server
image: docker.io/hasanmd91/ilh-backend
ports:
- '8088:8088'
- '8080:8080'
networks:
dev:
driver: bridge

0 comments on commit 47966a9

Please sign in to comment.