File tree Expand file tree Collapse file tree 1 file changed +26
-21
lines changed Expand file tree Collapse file tree 1 file changed +26
-21
lines changed Original file line number Diff line number Diff line change 16
16
- .github/actions/**
17
17
- codeql-workspace.yml
18
18
19
- env :
20
- GO_VERSION : ' ~1.22.0'
21
-
22
19
permissions :
23
20
contents : read
24
21
31
28
- name : Check out code
32
29
uses : actions/checkout@v4
33
30
31
+ - name : Get go version
32
+ shell : bash
33
+ run : |
34
+ (
35
+ echo -n "GO_VERSION="
36
+ bazel run @rules_go//go -- version | sed 's/go version go\(\S*\) .*/\1/'
37
+ ) | tee -a "$GITHUB_ENV"
38
+
39
+ - name : Set up Go
40
+ uses : actions/setup-go@v5
41
+ with :
42
+ go-version : ${{ env.GO_VERSION }}
43
+ cache : false
44
+ id : go
45
+
34
46
- name : Set up CodeQL CLI
35
47
uses : ./.github/actions/fetch-codeql
36
48
42
54
run : |
43
55
bazel run //go:create-extractor-pack
44
56
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
52
- run : |
53
- cd go
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
62
-
63
57
- name : Check that all Go code is autoformatted
64
58
run : |
65
59
cd go
84
78
with :
85
79
name : qhelp-markdown
86
80
path : go/qhelp-out/**/*.md
81
+
82
+ - name : Cache compilation cache
83
+ id : query-cache
84
+ uses : ./.github/actions/cache-query-compilation
85
+ with :
86
+ key : go-qltest
87
+
88
+ - name : Test
89
+ run : |
90
+ cd go
91
+ make test cache="${{ steps.query-cache.outputs.cache-dir }}"
You can’t perform that action at this time.
0 commit comments