File tree Expand file tree Collapse file tree 1 file changed +27
-19
lines changed Expand file tree Collapse file tree 1 file changed +27
-19
lines changed Original file line number Diff line number Diff line change 28
28
name : Test Linux (Ubuntu)
29
29
runs-on : ubuntu-latest-xl
30
30
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
-
38
31
- name : Check out code
39
32
uses : actions/checkout@v4
40
33
@@ -46,15 +39,41 @@ jobs:
46
39
run : ' find .github/problem-matchers -name \*.json -exec echo "::add-matcher::{}" \;'
47
40
48
41
- 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
49
52
run : |
50
53
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
52
62
53
63
- name : Check that all Go code is autoformatted
54
64
run : |
55
65
cd go
56
66
make check-formatting
57
67
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
+
58
77
- name : Compile qhelp files to markdown
59
78
run : |
60
79
cd go
65
84
with :
66
85
name : qhelp-markdown
67
86
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