From 4c1f99c28b09a9553b71c36c44a2c7f5b3424b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TwojeImi=C4=99=20NazwiskoJulia?= Date: Thu, 20 Nov 2025 00:22:38 +0100 Subject: [PATCH] Add .NET build and test workflow with artifact --- .gitea/workflows/ci.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 13a9250..491f001 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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 \ No newline at end of file + - uses: actions/download-artifact@v3 + with: + name: app.tar + - run: tar xf app.tar/app.tar + - run: ./app/app