Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sungaila committed Jul 2, 2024
1 parent 8b00fab commit 36e68d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,23 +261,23 @@ jobs:
with:
name: AotConsole
path: AotConsole
- name: docker build
- name: docker build aotconsole
shell: pwsh
run: docker build -t aotconsole -f src/FrameworkTests/AotConsole/Dockerfiles/Dockerfile .
- name: docker run
- name: docker run aotconsole
shell: pwsh
run: docker run -t aotconsole net8.0/PDFtoImage.FrameworkTests.AotConsole.dll
- name: Download test assemblies
if: success() || failure()
uses: actions/download-artifact@main
with:
name: Test assemblies
- name: docker build
- name: docker build test-client
id: build-test
shell: pwsh
if: success() || failure()
run: docker build -t test-client -f src/Tests/Dockerfiles/Dockerfile .
- name: docker run
- name: docker run test-client
shell: pwsh
if: steps.build-test.conclusion == 'success'
run: docker run --rm --mount type=bind,source=${{ github.workspace }},target=/app/TestResults -t test-client net8.0/PDFtoImage.Tests.dll
Expand Down
1 change: 0 additions & 1 deletion src/FrameworkTests/AotConsole/Dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM mcr.microsoft.com/dotnet/runtime:8.0
USER app
WORKDIR /app
COPY ["AotConsole", "."]
ENTRYPOINT ["dotnet"]
1 change: 0 additions & 1 deletion src/Tests/Dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0
USER app
WORKDIR /app
COPY . .
ENTRYPOINT ["dotnet", "test", "/logger:console;verbosity=detailed", "/logger:trx;verbosity=detailed"]

0 comments on commit 36e68d0

Please sign in to comment.