27 lines
641 B
YAML
27 lines
641 B
YAML
name: Static Analysis & Linter
|
|
on: [pull_request]
|
|
|
|
concurrency:
|
|
group: ci-staticcheck-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
ci:
|
|
name: Run Staticcheck
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
submodules: true
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
- name: Build SQL Syntax
|
|
run: ./build.sh
|
|
working-directory: ./postgres/parser
|
|
shell: bash
|
|
- name: Run check
|
|
run: ./run_staticcheck.sh
|
|
working-directory: ./scripts
|