Skip to content

Commit 54d5e1f

Browse files
Merge pull request buildpacks-community#314 from vmware-tanzu/ci
2 parents 89ecb04 + 1603e9b commit 54d5e1f

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ jobs:
2727
with:
2828
go-version-file: 'go.mod'
2929

30+
- name: Check docs up to date
31+
run: |
32+
set -euo pipefail
33+
go run cmd/docs/main.go
34+
if [[ `git status --porcelain` ]]; then
35+
echo "Docs are not up-to-date"
36+
exit 1
37+
fi
38+
3039
- name: Run tests
3140
run: go test -v ./pkg/...
3241

.github/workflows/unit-test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,14 @@ jobs:
1616
- name: Set up Go
1717
uses: actions/setup-go@v4
1818

19+
- name: Check docs up to date
20+
run: |
21+
set -euo pipefail
22+
go run cmd/docs/main.go
23+
if [[ `git status --porcelain` ]]; then
24+
echo "Docs are not up-to-date"
25+
exit 1
26+
fi
27+
1928
- name: Test
2029
run: go test -v ./pkg/...

0 commit comments

Comments
 (0)