test
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 19s

This commit is contained in:
xiabin 2025-02-11 10:12:47 +08:00
parent 9b98e76046
commit 282b5c7ded

View File

@ -6,14 +6,25 @@ jobs:
Explore-Gitea-Actions:
runs-on: runner
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
- 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: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."
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