Skip to content

Test

Test #429

Workflow file for this run

name: Test
on:
workflow_dispatch:
push:
branches:
- '*'
paths:
- 'go.*'
- '**/*.go'
- 'scripts/**'
- '.github/actions/test/**'
- '.github/workflows/test.yml'
tags-ignore:
- '*'
pull_request:
branches:
- '*'
paths:
- 'go.*'
- '**/*.go'
- 'scripts/**'
- '.github/actions/test/**'
- '.github/workflows/test.yml'
permissions:
contents: write
env:
COVERAGE_FILE: ./cover.out
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version-file: ./go.mod
- uses: eat-pray-ai/yutu/.github/actions/test@main
- uses: ncruces/go-coverage-report@v0
with:
coverage-file: ${{ env.COVERAGE_FILE }}
badge-style: flat-square
chart: true
amend: true
# if: |
# github.event_name == 'push' &&
# github.ref == 'refs/heads/main'