30 lines
732 B
YAML
Raw Normal View History

2025-02-11 09:57:08 +08:00
name: Gitea Actions Demo
2025-02-11 10:41:56 +08:00
#run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
2025-02-11 09:57:08 +08:00
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: runner
steps:
2025-02-11 10:12:47 +08:00
- name: Checkout code
2025-02-11 10:41:56 +08:00
uses: actions/checkout@v4
2025-02-11 10:12:47 +08:00
- name: Set up Go
2025-02-11 10:41:56 +08:00
uses: actions/setup-go@v5
2025-02-11 10:12:47 +08:00
with:
go-version: '1.20'
- name: Build Service
2025-02-11 09:57:08 +08:00
run: |
2025-02-11 10:12:47 +08:00
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