From 0ca7a347581cc01cf9eaa37225d289471d87ed05 Mon Sep 17 00:00:00 2001 From: Marco Gario Date: Fri, 11 Sep 2020 12:12:09 +0200 Subject: [PATCH] CI: Add test for small-bundles --- .github/workflows/integration-testing.yml | 53 ++++++++++++++++++++--- 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/.github/workflows/integration-testing.yml b/.github/workflows/integration-testing.yml index ca73f33ec..1f22237fe 100644 --- a/.github/workflows/integration-testing.yml +++ b/.github/workflows/integration-testing.yml @@ -124,6 +124,45 @@ jobs: env: TEST_MODE: true + single-language-bundles: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + language: ["none", "cpp", "csharp", "go", "java", "javascript", "python"] + runs-on: ${{ matrix.os }} + steps: + # Translate OS + - run: echo "::set-env name=OS::linux64" + if: matrix.os == 'ubuntu-latest' + - run: echo "::set-env name=OS::win64" + if: matrix.os == 'windows-latest' + - run: echo "::set-env name=OS::osx64" + if: matrix.os == 'macos-latest' + + - uses: actions/checkout@v2 + - name: Move codeql-action + shell: bash + run: | + mkdir ../action + mv * .github ../action/ + mv ../action/tests/multi-language-repo/{*,.github} . + + - uses: ./../action/init + if: matrix.language != 'none' + with: + languages: ${{ matrix.language }} + + - name: Test platform-specific bundle + uses: ./../action/init + if: matrix.language == 'none' + - name: Build code + shell: bash + run: ./build.sh + - uses: ./../action/analyze + env: + TEST_MODE: true + test-proxy: runs-on: ubuntu-latest container: @@ -150,7 +189,7 @@ jobs: - uses: ./../action/analyze env: TEST_MODE: true - + runner-analyze-javascript-ubuntu: runs-on: ubuntu-latest @@ -176,7 +215,7 @@ jobs: runner/dist/codeql-runner-linux analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }} env: TEST_MODE: true - + runner-analyze-javascript-windows: runs-on: windows-latest @@ -198,7 +237,7 @@ jobs: 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 }} env: TEST_MODE: true - + runner-analyze-javascript-macos: runs-on: macos-latest @@ -220,7 +259,7 @@ jobs: runner/dist/codeql-runner-macos analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }} env: TEST_MODE: true - + runner-analyze-csharp-ubuntu: runs-on: ubuntu-latest @@ -254,7 +293,7 @@ jobs: ../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 }} env: TEST_MODE: true - + runner-analyze-csharp-windows: runs-on: windows-latest @@ -325,7 +364,7 @@ jobs: env: TEST_MODE: true - + runner-analyze-csharp-autobuild-ubuntu: runs-on: ubuntu-latest @@ -358,7 +397,7 @@ jobs: ../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 }} env: TEST_MODE: true - + runner-analyze-csharp-autobuild-windows: runs-on: windows-latest