34 lines
686 B
YAML
34 lines
686 B
YAML
name: Test
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- 'cmd/**'
|
|
- 'pkg/**'
|
|
- 'scripts/**'
|
|
- 'go.mod'
|
|
- 'main.go'
|
|
- '.github/actions/test/**'
|
|
- '.github/workflows/test.yml'
|
|
pull_request:
|
|
paths:
|
|
- 'cmd/**'
|
|
- 'pkg/**'
|
|
- 'scripts/**'
|
|
- 'go.mod'
|
|
- 'main.go'
|
|
- '.github/actions/test/**'
|
|
- '.github/workflows/test.yml'
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: ./go.mod
|
|
- uses: eat-pray-ai/yutu/.github/actions/test@main
|