Skip to content

Commit a511aca

Browse files
committed
Add separate job for go
1 parent c384705 commit a511aca

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

.github/workflows/integration-testing.yml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111

1212
steps:
13-
- uses: actions/setup-go@v2
14-
if: ${{ matrix.os == 'macos-latest' }}
15-
with:
16-
go-version: '^1.13.1'
1713
- uses: actions/checkout@v2
1814
- name: Move codeql-action
1915
shell: bash
@@ -33,7 +29,34 @@ jobs:
3329
multi-language-repo_test-custom-queries:
3430
strategy:
3531
matrix:
36-
os: [ubuntu-latest, windows-latest]
32+
os: [ubuntu-latest, windows-latest, macos-latest]
33+
runs-on: ${{ matrix.os }}
34+
35+
steps:
36+
- uses: actions/checkout@v2
37+
- name: Move codeql-action
38+
shell: bash
39+
run: |
40+
mkdir ../action
41+
shopt -s dotglob
42+
mv * ../action/
43+
mv ../action/tests/multi-language-repo/* .
44+
- uses: ./../action/init
45+
with:
46+
languages: cpp,csharp,java,javascript,python
47+
config-file: ./.github/codeql/custom-queries.yml
48+
- name: Build code
49+
shell: bash
50+
run: ./build.sh
51+
- uses: ./../action/analyze
52+
env:
53+
TEST_MODE: true
54+
55+
# Currently is not possible to analyze Go in conjunction with other languages in macos
56+
multi-language-repo_test-go-custom-queries:
57+
strategy:
58+
matrix:
59+
os: [ubuntu-latest, windows-latest, macos-latest]
3760
runs-on: ${{ matrix.os }}
3861

3962
steps:
@@ -51,7 +74,7 @@ jobs:
5174
mv ../action/tests/multi-language-repo/* .
5275
- uses: ./../action/init
5376
with:
54-
languages: cpp,csharp,go,java,javascript,python
77+
languages: go
5578
config-file: ./.github/codeql/custom-queries.yml
5679
- name: Build code
5780
shell: bash

0 commit comments

Comments
 (0)