Files
ci_pipe/.gitea/workflows/ci.yml
mykola-derevianko f31664fc64
All checks were successful
First CI / build (push) Successful in 1m34s
fix: test now is on the same level as build stage
2025-11-21 11:04:11 +01:00

30 lines
729 B
YAML

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 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
path: app.tar
test:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: app
- run: tar xf app.tar
- run: chmod +x app/app
- run: ./app/app