Add .NET build and test workflow with artifact
Some checks failed
First CI / test (push) Failing after 6s
First CI / build (push) Failing after 1m9s

This commit is contained in:
TwojeImię NazwiskoJulia
2025-11-20 00:22:38 +01:00
parent f764175e83
commit 4c1f99c28b

View File

@@ -11,8 +11,16 @@ jobs:
dotnet-version: '8.0.x'
- run: dotnet restore
- run: dotnet build
- run: dotnet test
- run: dotnet publish -o app -r linux-x64 --self-contained true /p:PublishSingleFile=true,AssemblyName=app
- run: tar cf app.tar app/
- uses: actions/upload-artifact@v3
with:
test:
steps:
- name: trying to run
run: dotnet run
- run: dotnet build
- uses: actions/download-artifact@v3
with:
name: app.tar
- run: tar xf app.tar/app.tar
- run: ./app/app