From 133ec2e4af08dfa9db45a55a802d124dd35eb9b0 Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Tue, 23 Nov 2021 16:18:33 +0100 Subject: [PATCH] Fix CI jobs --- .github/workflows/ruby-dataset-measure.yml | 2 +- .github/workflows/ruby-qltest.yml | 4 ++-- ruby/Makefile | 3 +-- ruby/doc/HOWTO.md | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ruby-dataset-measure.yml b/.github/workflows/ruby-dataset-measure.yml index 4ae06acc855e..3096997baa26 100644 --- a/.github/workflows/ruby-dataset-measure.yml +++ b/.github/workflows/ruby-dataset-measure.yml @@ -41,7 +41,7 @@ jobs: - name: Create database run: | codeql database create \ - --search-path "${{ github.workspace }}/ruby" \ + --search-path "${{ github.workspace }}/ruby/extractor-pack" \ --threads 4 \ --language ruby --source-root "${{ github.workspace }}/repo" \ "${{ runner.temp }}/database" diff --git a/.github/workflows/ruby-qltest.yml b/.github/workflows/ruby-qltest.yml index fab569eb5e78..1f1f9b806d7c 100644 --- a/.github/workflows/ruby-qltest.yml +++ b/.github/workflows/ruby-qltest.yml @@ -32,14 +32,14 @@ jobs: - uses: ./ruby/actions/create-extractor-pack - name: Run QL tests run: | - codeql test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --consistency-queries ql/consistency-queries ql/test + codeql test run --search-path "${{ github.workspace }}/ruby/extractor-pack" --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --consistency-queries ql/consistency-queries ql/test env: GITHUB_TOKEN: ${{ github.token }} - name: Check QL formatting run: find ql "(" -name "*.ql" -or -name "*.qll" ")" -print0 | xargs -0 codeql query format --check-only - name: Check QL compilation run: | - codeql query compile --check-only --threads=4 --warnings=error --search-path "${{ github.workspace }}/ruby" --additional-packs "${{ github.workspace }}" "ql/src" "ql/examples" + codeql query compile --check-only --threads=4 --warnings=error "ql/src" "ql/examples" env: GITHUB_TOKEN: ${{ github.token }} - name: Check DB upgrade scripts diff --git a/ruby/Makefile b/ruby/Makefile index 02d7c92a46e0..09f4deb1e85a 100644 --- a/ruby/Makefile +++ b/ruby/Makefile @@ -67,5 +67,4 @@ extractor: $(FILES) $(BIN_FILES) cp target/release/ruby-autobuilder$(EXE) extractor-pack/tools/$(CODEQL_PLATFORM)/autobuilder$(EXE) test: extractor dbscheme - codeql pack install ql/test - codeql test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path . --consistency-queries ql/consistency-queries ql/test + codeql test run --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition --search-path extractor-pack --consistency-queries ql/consistency-queries ql/test diff --git a/ruby/doc/HOWTO.md b/ruby/doc/HOWTO.md index 8952dc9561f6..d2c4c316db54 100644 --- a/ruby/doc/HOWTO.md +++ b/ruby/doc/HOWTO.md @@ -39,7 +39,7 @@ codeql database create -l ruby -s --search Run ```bash -codeql test run --search-path +codeql test run --search-path ``` ## Writing database upgrade scripts