2023-02-07 09:41:04 +00:00
|
|
|
name: Check Go Docs for tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize]
|
|
|
|
# Runs on PRs to main
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
godoc-test-check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-05-22 17:18:06 +00:00
|
|
|
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
2023-02-07 09:41:04 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Set Up Go
|
2023-05-22 17:18:06 +00:00
|
|
|
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
|
2023-02-07 09:41:04 +00:00
|
|
|
with:
|
|
|
|
cache: true
|
2023-03-22 19:02:06 +00:00
|
|
|
go-version-file: ./.go-version
|
2023-02-07 09:41:04 +00:00
|
|
|
- name: Verify new tests have go docs
|
2023-03-22 19:02:06 +00:00
|
|
|
run: make ci-vet-godoctests
|