xiabin 282b5c7ded
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 19s
test
2025-02-11 10:12:47 +08:00

30 lines
731 B
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: runner
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build Service
run: |
cd app/${{ matrix.service }}
go mod tidy
go build -o ${{ matrix.service }}_bin ./${{ matrix.service }}
- name: Run Service
run: |
cd app/${{ matrix.service }}
./${{ matrix.service }}_bin -f etc/${{ matrix.service }}.yaml &
background: true
- name: Keep alive
run: sleep 300