Skip to content

Commit

Permalink
Merge pull request github#7222 from aibaars/ruby-ci-fix
Browse files Browse the repository at this point in the history
Ruby: fix CI jobs after removal of `.codeql-manifest.json`
  • Loading branch information
aibaars authored Nov 24, 2021
2 parents 3bab8c6 + 133ec2e commit 4b3b1d2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ruby-dataset-measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ruby-qltest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions ruby/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion ruby/doc/HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ codeql database create <database-path> -l ruby -s <project-source-path> --search
Run

```bash
codeql test run <test-path> --search-path <repository-root-path>
codeql test run <test-path> --search-path <extractor-pack-path>
```

## Writing database upgrade scripts
Expand Down

0 comments on commit 4b3b1d2

Please sign in to comment.