diff --git a/.github/workflows/go-tests-other-os.yml b/.github/workflows/go-tests-other-os.yml index 2760a8a4b51af..0d95faeb14180 100644 --- a/.github/workflows/go-tests-other-os.yml +++ b/.github/workflows/go-tests-other-os.yml @@ -29,7 +29,42 @@ jobs: name: Test Windows runs-on: windows-latest-xl steps: - - name: Check out code - uses: actions/checkout@v4 + # - name: Check out code + # uses: actions/checkout@v4 + - name: dump env + shell: pwsh + run: | + Get-ChildItem Env: + - name: dump env bash + shell: bash + run: | + export + where bazel + where bazelisk + bazel version + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: "~1.23.1" + cache: false + id: go + - name: dump env bash again + shell: bash + run: | + export + where bazel + where bazelisk + bazel version + + - name: test1 + run: | + C:\npm\prefix\bazel version + - name: test2 + run: | + C:\ProgramData\Chocolatey\bin\bazel.exe version + C:\npm\prefix\bazelisk version + - name: test3 + run: | + C:\npm\prefix\bazelisk version - name: Run tests uses: ./go/actions/test diff --git a/go/Makefile b/go/Makefile index bc4bc25e5da86..4b7f5f65b2ae8 100644 --- a/go/Makefile +++ b/go/Makefile @@ -28,9 +28,17 @@ qhelp-to-markdown: scripts/qhelp-to-markdown.sh ql/src "$(QHELP_OUT_DIR)" extractor: + export + where bazel + bazel version + pwd bazel run :go-installer gen: + export + where bazel + bazel version + pwd bazel run :gen build/stats/src.stamp: @@ -45,9 +53,9 @@ ql/lib/go.dbscheme.stats: ql/lib/go.dbscheme build/stats/src.stamp extractor codeql dataset measure -o $@ build/stats/database/db-go test: all build/testdb/check-upgrade-path - codeql test run -j0 ql/test --search-path .. --consistency-queries ql/test/consistency --compilation-cache=$(cache) + # codeql test run -j0 ql/test --search-path .. --consistency-queries ql/test/consistency --compilation-cache=$(cache) # use GOOS=linux because GOOS=darwin GOARCH=386 is no longer supported - env GOOS=linux GOARCH=386 codeql$(EXE) test run -j0 ql/test/query-tests/Security/CWE-681 --search-path .. --consistency-queries ql/test/consistency --compilation-cache=$(cache) + # env GOOS=linux GOARCH=386 codeql$(EXE) test run -j0 ql/test/query-tests/Security/CWE-681 --search-path .. --consistency-queries ql/test/consistency --compilation-cache=$(cache) cd extractor; bazel test ... bash extractor-smoke-test/test.sh || (echo "Extractor smoke test FAILED"; exit 1)