Fix up the benchmark workflow
This commit is contained in:
@@ -8,14 +8,13 @@ jobs:
|
|||||||
RUNNER_TOOL_CACHE: /opt/hostedtoolcache
|
RUNNER_TOOL_CACHE: /opt/hostedtoolcache
|
||||||
GOMODCACHE: /opt/hostedtoolcache/go/pkg/mod
|
GOMODCACHE: /opt/hostedtoolcache/go/pkg/mod
|
||||||
steps:
|
steps:
|
||||||
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event. test"
|
|
||||||
- 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
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
|
- name: Get Go
|
||||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
uses: actions/setup-go@v3
|
||||||
- name: List files in the repository
|
with:
|
||||||
run: |
|
go-version-file: 'go.mod'
|
||||||
ls ${{ gitea.workspace }}
|
check-latest: true
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
cache: true
|
||||||
|
- name: Run benchmark
|
||||||
|
run: cd benchmark && go run . -setid
|
Reference in New Issue
Block a user