Commit 1607f13 1 parent cd219d3 commit 1607f13 Copy full SHA for 1607f13
File tree 2 files changed +32
-1
lines changed
2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,38 @@ jobs:
42
42
path : ${{ steps.go-cache-paths.outputs.GOCACHE }}
43
43
key : ${{ runner.os }}-go-build-${{ hashFiles('**/go.**', '**.go') }}
44
44
45
- # Install Go!
46
45
- uses : actions/setup-go@v3
47
46
with :
48
47
go-version : " ~1.21"
49
48
50
49
- name : Test
51
50
run : make test
51
+ docs :
52
+ runs-on : ubuntu-latest
53
+ steps :
54
+ - name : Checkout
55
+ uses : actions/checkout@v4
56
+ with :
57
+ ref : ${{ github.event.pull_request.head.sha }}
58
+
59
+ - name : Echo Go Cache Paths
60
+ id : go-cache-paths
61
+ run : |
62
+ echo "GOCACHE=$(go env GOCACHE)" >> ${{ runner.os == 'Windows' && '$env:' || '$' }}GITHUB_OUTPUT
63
+ echo "GOMODCACHE=$(go env GOMODCACHE)" >> ${{ runner.os == 'Windows' && '$env:' || '$' }}GITHUB_OUTPUT
64
+
65
+ - name : Go Build Cache
66
+ uses : actions/cache@v3
67
+ with :
68
+ path : ${{ steps.go-cache-paths.outputs.GOCACHE }}
69
+ key : ${{ runner.os }}-go-build-${{ hashFiles('**/go.**', '**.go') }}
70
+
71
+ - uses : actions/setup-go@v3
72
+ with :
73
+ go-version : " ~1.21"
74
+
75
+ - name : Generate docs
76
+ run : make docs
77
+
78
+ - name : Check for unstaged files
79
+ run : git diff --exit-code
Original file line number Diff line number Diff line change 7
7
build : scripts/envbuilder-$(GOARCH )
8
8
./scripts/build.sh
9
9
10
+ docs : options.go
11
+ go run ./scripts/docsgen/main.go
12
+
10
13
.PHONY : test
11
14
test : test-registry test-images
12
15
go test -count=1 ./...
You can’t perform that action at this time.
0 commit comments