diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000..a380834 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 8a89ca6..a08fcdc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index a460b17..5f74965 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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