File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 name : Test Linux (Ubuntu)
2929 runs-on : ubuntu-latest-xl
3030 steps :
31- - name : Set up Go ${{ env.GO_VERSION }}
32- uses : actions/setup-go@v5
33- with :
34- go-version : ${{ env.GO_VERSION }}
35- cache : false
36- id : go
37-
3831 - name : Check out code
3932 uses : actions/checkout@v4
4033
@@ -46,15 +39,41 @@ jobs:
4639 run : ' find .github/problem-matchers -name \*.json -exec echo "::add-matcher::{}" \;'
4740
4841 - name : Build
42+ run : |
43+ bazel run //go:create-extractor-pack
44+
45+ - name : Cache compilation cache
46+ id : query-cache
47+ uses : ./.github/actions/cache-query-compilation
48+ with :
49+ key : go-qltest
50+
51+ - name : Test
4952 run : |
5053 cd go
51- make
54+ make test cache="${{ steps.query-cache.outputs.cache-dir }}"
55+
56+ check-code :
57+ name : Check code
58+ runs-on : ubuntu-latest
59+ steps :
60+ - name : Check out code
61+ uses : actions/checkout@v4
5262
5363 - name : Check that all Go code is autoformatted
5464 run : |
5565 cd go
5666 make check-formatting
5767
68+ - name : Check checked-in generated code
69+ run : |
70+ bazel run //go:gen
71+ git add .
72+ git diff --exit-code HEAD || (
73+ echo "please run bazel run //go:gen"
74+ exit 1
75+ )
76+
5877 - name : Compile qhelp files to markdown
5978 run : |
6079 cd go
6584 with :
6685 name : qhelp-markdown
6786 path : go/qhelp-out/**/*.md
68-
69- - name : Cache compilation cache
70- id : query-cache
71- uses : ./.github/actions/cache-query-compilation
72- with :
73- key : go-qltest
74-
75- - name : Test
76- run : |
77- cd go
78- make test cache="${{ steps.query-cache.outputs.cache-dir }}"
You can’t perform that action at this time.
0 commit comments