Skip to content

Commit

Permalink
Merge pull request #314 from vmware-tanzu/ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkennedy513 authored Jul 7, 2023
2 parents e576ec2 + 31912fa commit 55e53b8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,15 @@ jobs:
with:
go-version-file: 'go.mod'

- name: Check docs up to date
run: |
set -euo pipefail
go run cmd/docs/main.go
if [[ `git status --porcelain` ]]; then
echo "Docs are not up-to-date"
exit 1
fi
- name: Run tests
run: go test -v ./pkg/...

Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,14 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4

- name: Check docs up to date
run: |
set -euo pipefail
go run cmd/docs/main.go
if [[ `git status --porcelain` ]]; then
echo "Docs are not up-to-date"
exit 1
fi
- name: Test
run: go test -v ./pkg/...

0 comments on commit 55e53b8

Please # to comment.