mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
It turns out we still need to supply this option, so `codeql` goes looking for the extractor paths specified in the `codeql-workspace.yml` file.
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Build Swift CodeQL pack
|
|
description: Builds the Swift CodeQL pack
|
|
inputs:
|
|
flags:
|
|
description: "Additional `codeql test run` flags"
|
|
required: false
|
|
default: ""
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: ./swift/actions/share-extractor-pack
|
|
- uses: ./.github/actions/fetch-codeql
|
|
- id: query-cache
|
|
uses: ./.github/actions/cache-query-compilation
|
|
with:
|
|
key: swift-qltest
|
|
- name: Run QL tests
|
|
shell: bash
|
|
run: |
|
|
codeql test run \
|
|
--threads=0 \
|
|
--ram 50000 \
|
|
--search-path "$GITHUB_WORKSPACE" \
|
|
--check-databases \
|
|
--check-unused-labels \
|
|
--check-repeated-labels \
|
|
--check-redefined-labels \
|
|
--check-use-before-definition \
|
|
--consistency-queries "${{ github.workspace }}/swift/ql/consistency-queries" \
|
|
--compilation-cache "${{ steps.query-cache.outputs.cache-dir }}" \
|
|
${{ inputs.flags }} \
|
|
swift/ql/test
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
GITHUB_WORKSPACE: ${{ github.workspace }}
|