@@ -124,6 +124,45 @@ jobs:
124124 env :
125125 TEST_MODE : true
126126
127+ single-language-bundles :
128+ strategy :
129+ fail-fast : false
130+ matrix :
131+ os : [ubuntu-latest, windows-latest, macos-latest]
132+ language : ["none", "cpp", "csharp", "go", "java", "javascript", "python"]
133+ runs-on : ${{ matrix.os }}
134+ steps :
135+ # Translate OS
136+ - run : echo "::set-env name=OS::linux64"
137+ if : matrix.os == 'ubuntu-latest'
138+ - run : echo "::set-env name=OS::win64"
139+ if : matrix.os == 'windows-latest'
140+ - run : echo "::set-env name=OS::osx64"
141+ if : matrix.os == 'macos-latest'
142+
143+ - uses : actions/checkout@v2
144+ - name : Move codeql-action
145+ shell : bash
146+ run : |
147+ mkdir ../action
148+ mv * .github ../action/
149+ mv ../action/tests/multi-language-repo/{*,.github} .
150+
151+ - uses : ./../action/init
152+ if : matrix.language != 'none'
153+ with :
154+ languages : ${{ matrix.language }}
155+
156+ - name : Test platform-specific bundle
157+ uses : ./../action/init
158+ if : ${{ matrix.language == "none" }}
159+ - name : Build code
160+ shell : bash
161+ run : ./build.sh
162+ - uses : ./../action/analyze
163+ env :
164+ TEST_MODE : true
165+
127166 test-proxy :
128167 runs-on : ubuntu-latest
129168 container :
@@ -150,7 +189,7 @@ jobs:
150189 - uses : ./../action/analyze
151190 env :
152191 TEST_MODE : true
153-
192+
154193 runner-analyze-javascript-ubuntu :
155194 runs-on : ubuntu-latest
156195
@@ -176,7 +215,7 @@ jobs:
176215 runner/dist/codeql-runner-linux analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
177216 env :
178217 TEST_MODE : true
179-
218+
180219 runner-analyze-javascript-windows :
181220 runs-on : windows-latest
182221
@@ -198,7 +237,7 @@ jobs:
198237 runner/dist/codeql-runner-win.exe analyze --repository $Env:GITHUB_REPOSITORY --commit $Env:GITHUB_SHA --ref $Env:GITHUB_REF --github-url $Env:GITHUB_SERVER_URL --github-auth ${{ github.token }}
199238 env :
200239 TEST_MODE : true
201-
240+
202241 runner-analyze-javascript-macos :
203242 runs-on : macos-latest
204243
@@ -220,7 +259,7 @@ jobs:
220259 runner/dist/codeql-runner-macos analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
221260 env :
222261 TEST_MODE : true
223-
262+
224263 runner-analyze-csharp-ubuntu :
225264 runs-on : ubuntu-latest
226265
@@ -254,7 +293,7 @@ jobs:
254293 ../action/runner/dist/codeql-runner-linux analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
255294 env :
256295 TEST_MODE : true
257-
296+
258297 runner-analyze-csharp-windows :
259298 runs-on : windows-latest
260299
@@ -325,7 +364,7 @@ jobs:
325364 env :
326365 TEST_MODE : true
327366
328-
367+
329368 runner-analyze-csharp-autobuild-ubuntu :
330369 runs-on : ubuntu-latest
331370
@@ -358,7 +397,7 @@ jobs:
358397 ../action/runner/dist/codeql-runner-linux analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
359398 env :
360399 TEST_MODE : true
361-
400+
362401 runner-analyze-csharp-autobuild-windows :
363402 runs-on : windows-latest
364403
0 commit comments