Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 3s
30 lines
732 B
YAML
30 lines
732 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@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
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 |