Files
ci_pipe/.gitea/workflows/ci.yml
mykola-derevianko 6d15c223da
All checks were successful
First CI / build (push) Successful in 1m39s
First CI / test (push) Successful in 10s
fix: test now waits for build stage to complete
2025-11-21 11:07:10 +01:00

31 lines
728 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:
needs: build
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