From c3b46920cdcdb8c07016114a663676c60849de39 Mon Sep 17 00:00:00 2001 From: Kowal <133172565+Koooowal@users.noreply.github.com> Date: Thu, 20 Nov 2025 15:18:47 +0100 Subject: [PATCH] Opis zmian zad4.2 --- .gitea/workflows/ci.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 9a611c2..b13bd87 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,13 +1,34 @@ name: First CI on: [push] + jobs: build: 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 - - run: dotnet te \ No newline at end of file + - 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: + runs-on: ubuntu-latest + steps: + - uses: actions/download-artifact@v3 + with: + name: app.tar + + - run: tar xf app.tar + - run: ./app/app