This commit is contained in:
parent
9b98e76046
commit
282b5c7ded
@ -6,14 +6,25 @@ jobs:
|
|||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: runner
|
runs-on: runner
|
||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event."
|
- name: Checkout code
|
||||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
uses: actions/checkout@v3
|
||||||
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
||||||
- name: Check out repository code
|
- name: Set up Go
|
||||||
uses: actions/checkout@v4
|
uses: actions/setup-go@v4
|
||||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
with:
|
||||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
go-version: '1.20'
|
||||||
- name: List files in the repository
|
|
||||||
|
- name: Build Service
|
||||||
run: |
|
run: |
|
||||||
ls ${{ gitea.workspace }}
|
cd app/${{ matrix.service }}
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
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
|
Loading…
x
Reference in New Issue
Block a user