diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index fa6544b6..1a4c5d2e 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -23,12 +23,7 @@ jobs: run: dotnet restore SecurityService.slnx --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} - name: Build Code - run: dotnet build SecurityService.slnx --configuration Release - - - name: Run Unit Tests - run: | - echo "ASPNETCORE_ENVIRONMENT are > ${ASPNETCORE_ENVIRONMENT}" - dotnet test "SecurityService.UnitTests\SecurityService.UnitTests.csproj" + run: dotnet build SecurityService.slnx --configuration Release - name: Publish Images to Docker Hub - Pre Release if: ${{ github.event.release.prerelease == true }} diff --git a/.github/workflows/nightlybuild.yml b/.github/workflows/nightlybuild.yml index df9c7599..aa27b64e 100644 --- a/.github/workflows/nightlybuild.yml +++ b/.github/workflows/nightlybuild.yml @@ -63,10 +63,9 @@ jobs: dotnet test "SecurityService.IntegrationTests\SecurityService.IntegrationTests.csproj" --filter Category=PRTest - uses: actions/upload-artifact@v4.4.0 - if: ${{ failure() }} with: name: nonuilogs - path: /home/txnproc/trace/ + path: /home/runner/trace/ - name: Create Issue on Failed workflow if: ${{ failure() }} @@ -131,10 +130,9 @@ jobs: dotnet test "SecurityService.OpenIdConnect.IntegrationTests\SecurityService.OpenIdConnect.IntegrationTests.csproj" --filter Category=PRTest - uses: actions/upload-artifact@v4.4.0 - if: ${{ failure() }} with: name: firefoxlogs - path: /home/txnproc/trace/ + path: /home/runner/trace/ - uses: dacbd/create-issue-action@main if: ${{ failure() }} @@ -204,10 +202,9 @@ jobs: dotnet test "SecurityService.OpenIdConnect.IntegrationTests\SecurityService.OpenIdConnect.IntegrationTests.csproj" --filter Category=PRTest - uses: actions/upload-artifact@v4.4.0 - if: ${{ failure() }} with: name: chromelogs - path: /home/txnproc/trace/ + path: /home/runner/trace/ - uses: dacbd/create-issue-action@main if: ${{ failure() }} @@ -274,10 +271,9 @@ jobs: dotnet test "SecurityService.OpenIdConnect.IntegrationTests\SecurityService.OpenIdConnect.IntegrationTests.csproj" --filter Category=PRTest - uses: actions/upload-artifact@v4.4.0 - if: ${{ failure() }} with: name: edgelogs - path: /home/txnproc/trace/ + path: /home/runner/trace/ - uses: dacbd/create-issue-action@main if: ${{ failure() }} diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index d6fceee6..d6ea7758 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -59,10 +59,9 @@ jobs: dotnet test "SecurityService.IntegrationTests\SecurityService.IntegrationTests.csproj" --filter Category=PRTest --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=nonui-test-results.trx" - uses: actions/upload-artifact@v4 - if: ${{ failure() }} with: name: nonuilogs - path: /home/txnproc/trace/ + path: /home/runner/trace/ - name: Publish test results uses: dorny/test-reporter@v1 @@ -127,10 +126,9 @@ jobs: dotnet test "SecurityService.OpenIdConnect.IntegrationTests\SecurityService.OpenIdConnect.IntegrationTests.csproj" --filter Category=PRTest --configuration Release --no-build --verbosity normal --logger "trx;LogFileName=firefoxui-test-results.trx" - uses: actions/upload-artifact@v4 - if: ${{ failure() }} with: name: firefoxlogs - path: /home/txnproc/trace/ + path: /home/runner/trace/ - name: Publish test results uses: dorny/test-reporter@v1 @@ -200,10 +198,9 @@ jobs: dotnet test "SecurityService.OpenIdConnect.IntegrationTests\SecurityService.OpenIdConnect.IntegrationTests.csproj" --filter Category=PRTest - uses: actions/upload-artifact@v4 - if: ${{ failure() }} with: name: chromelogs - path: /home/txnproc/trace/ + path: /home/runner/trace/ buildedgeui: @@ -259,7 +256,6 @@ jobs: dotnet test "SecurityService.OpenIdConnect.IntegrationTests\SecurityService.OpenIdConnect.IntegrationTests.csproj" --filter Category=PRTest - uses: actions/upload-artifact@v4 - if: ${{ failure() }} with: name: edgelogs - path: /home/txnproc/trace/ + path: /home/runner/trace/ diff --git a/SecurityService/Dockerfile b/SecurityService/Dockerfile index 8a7b4345..b8a823ed 100644 --- a/SecurityService/Dockerfile +++ b/SecurityService/Dockerfile @@ -33,5 +33,4 @@ RUN dotnet publish "SecurityService.csproj" -c Release -o /app FROM base AS final WORKDIR /app COPY --from=publish /app . -USER app ENTRYPOINT ["dotnet", "SecurityService.dll"]