File tree Expand file tree Collapse file tree 2 files changed +81
-73
lines changed Expand file tree Collapse file tree 2 files changed +81
-73
lines changed Original file line number Diff line number Diff line change 1+ name : " Go: Run Tests - Other OS"
2+ on :
3+ pull_request :
4+ paths :
5+ - " go/**"
6+ - " !go/ql/**" # don't run other-os if only ql/ files changed
7+ - .github/workflows/go-tests-other-os.yml
8+ - .github/actions/fetch-codeql/action.yml
9+ - .github/actions/cache-query-compilation/action.yml
10+ - codeql-workspace.yml
11+ jobs :
12+ test-mac :
13+ name : Test MacOS
14+ runs-on : macos-latest
15+ steps :
16+ - name : Set up Go 1.19
17+ uses : actions/setup-go@v3
18+ with :
19+ go-version : 1.19
20+ id : go
21+
22+ - name : Check out code
23+ uses : actions/checkout@v2
24+
25+ - name : Set up CodeQL CLI
26+ uses : ./.github/actions/fetch-codeql
27+
28+ - name : Enable problem matchers in repository
29+ shell : bash
30+ run : ' find .github/problem-matchers -name \*.json -exec echo "::add-matcher::{}" \;'
31+
32+ - name : Build
33+ run : |
34+ cd go
35+ make
36+
37+ - name : Cache compilation cache
38+ id : query-cache
39+ uses : ./.github/actions/cache-query-compilation
40+ with :
41+ key : go-qltest
42+ - name : Test
43+ run : |
44+ cd go
45+ make test cache="${{ steps.query-cache.outputs.cache-dir }}"
46+
47+ test-win :
48+ name : Test Windows
49+ runs-on : windows-latest-xl
50+ steps :
51+ - name : Set up Go 1.19
52+ uses : actions/setup-go@v3
53+ with :
54+ go-version : 1.19
55+ id : go
56+
57+ - name : Check out code
58+ uses : actions/checkout@v2
59+
60+ - name : Set up CodeQL CLI
61+ uses : ./.github/actions/fetch-codeql
62+
63+ - name : Enable problem matchers in repository
64+ shell : bash
65+ run : ' find .github/problem-matchers -name \*.json -exec echo "::add-matcher::{}" \;'
66+
67+ - name : Build
68+ run : |
69+ cd go
70+ make
71+
72+ - name : Cache compilation cache
73+ id : query-cache
74+ uses : ./.github/actions/cache-query-compilation
75+ with :
76+ key : go-qltest
77+
78+ - name : Test
79+ run : |
80+ cd go
81+ make test cache="${{ steps.query-cache.outputs.cache-dir }}"
Original file line number Diff line number Diff line change 6969 run : |
7070 cd go
7171 make test cache="${{ steps.query-cache.outputs.cache-dir }}"
72-
73- test-mac :
74- name : Test MacOS
75- runs-on : macos-latest
76- if : ${{ github.event_name == 'pull_request' }}
77- steps :
78- - name : Set up Go 1.19
79- uses : actions/setup-go@v3
80- with :
81- go-version : 1.19
82- id : go
83-
84- - name : Check out code
85- uses : actions/checkout@v2
86-
87- - name : Set up CodeQL CLI
88- uses : ./.github/actions/fetch-codeql
89-
90- - name : Enable problem matchers in repository
91- shell : bash
92- run : ' find .github/problem-matchers -name \*.json -exec echo "::add-matcher::{}" \;'
93-
94- - name : Build
95- run : |
96- cd go
97- make
98-
99- - name : Cache compilation cache
100- id : query-cache
101- uses : ./.github/actions/cache-query-compilation
102- with :
103- key : go-qltest
104- - name : Test
105- run : |
106- cd go
107- make test cache="${{ steps.query-cache.outputs.cache-dir }}"
108-
109- test-win :
110- name : Test Windows
111- runs-on : windows-latest-xl
112- if : ${{ github.event_name == 'pull_request' }}
113- steps :
114- - name : Set up Go 1.19
115- uses : actions/setup-go@v3
116- with :
117- go-version : 1.19
118- id : go
119-
120- - name : Check out code
121- uses : actions/checkout@v2
122-
123- - name : Set up CodeQL CLI
124- uses : ./.github/actions/fetch-codeql
125-
126- - name : Enable problem matchers in repository
127- shell : bash
128- run : ' find .github/problem-matchers -name \*.json -exec echo "::add-matcher::{}" \;'
129-
130- - name : Build
131- run : |
132- cd go
133- make
134-
135- - name : Cache compilation cache
136- id : query-cache
137- uses : ./.github/actions/cache-query-compilation
138- with :
139- key : go-qltest
140-
141- - name : Test
142- run : |
143- cd go
144- make test cache="${{ steps.query-cache.outputs.cache-dir }}"
You can’t perform that action at this time.
0 commit comments