From 9c5850d0c45a428f795287b351e47f3bd6985188 Mon Sep 17 00:00:00 2001 From: mykola-derevianko Date: Fri, 21 Nov 2025 10:58:10 +0100 Subject: [PATCH] Second dotnet ci pipeline --- .gitea/workflows/ci.yml | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 476b3dd..ab33e77 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -2,15 +2,25 @@ name: First CI on: [push] jobs: build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-dotnet@v3 - with: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v3 + with: dotnet-version: "8.0.x" - - run: dotnet restore - - run: dotnet build - test: - steps: - - name: trying to run - run: dotnet run + - run: dotnet restore + - run: dotnet build + - run: dotnet test + - run: dotnet publish -o app -r linux-x64 --sc /p:PublishSingleFile=true,AssemblyName=app + - run: tar cf app.tar app/ + - uses: actions/upload-artifact@v3 + with: + name: app.tar + path: app.tar + test: + steps: + - uses: actions/download-artifact@v3 + with: + name: app.tar + - run: tar xf app.tar/app.tar + - run: ./app/app