Skip to content

refactor(codeql_qdriver): migrate from query run to database run-queries #40

refactor(codeql_qdriver): migrate from query run to database run-queries

refactor(codeql_qdriver): migrate from query run to database run-queries #40

Workflow file for this run

name: test
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: '1.24.2'
- name: Setup CodeQL
id: codeqlsetup
uses: github/codeql-action/setup-codeql@v4
- name: Add CodeQL to PATH # see https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands#adding-a-system-path
run: |
# 1. get the full path of CodeQL
FULL_PATH="${{ steps.codeqlsetup.outputs.codeql-path }}"
# 2. use dirname to get the directory of CodeQL binary
CODEQL_DIR=$(dirname "$FULL_PATH")
# 3. add CodeQL directory to GITHUB_PATH
echo "$CODEQL_DIR" >> $GITHUB_PATH
# print the CodeQL directory to confirm
echo "Adding $CODEQL_DIR to PATH"
- name: Test
run: |
./scripts/ci.sh
- name: Setup tmate session # see https://github.com/mxschmitt/action-tmate#only-on-failure
uses: mxschmitt/action-tmate@v3
if: ${{ failure() }}