enhance WAITFOR statement handling #2918
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: [push, pull_request] | |
| jobs: | |
| analyze: | |
| name: Static Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: 1.25 | |
| cache-dependency-path: | | |
| go.sum | |
| tools/apiref/go.sum | |
| tools/apipublish/go.sum | |
| - name: Set up linters | |
| run: make install-tools | |
| - name: Lint | |
| run: | | |
| make lint | |
| make fmt | |
| git diff | |
| if [[ $(git diff) != '' ]]; then echo 'Invalid formatting!' >&2; exit 1; fi | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| goVer: [1.25, 1.26] | |
| steps: | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v2 | |
| - name: Set up Go ${{ matrix.goVer }} | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.goVer }} | |
| cache-dependency-path: | | |
| go.sum | |
| tools/apiref/go.sum | |
| tools/apipublish/go.sum | |
| id: go | |
| - name: Set up ANTLR | |
| env: | |
| ANTLR_VERSION: 4.13.2 | |
| run: | | |
| sudo curl -o /usr/local/lib/antlr-${ANTLR_VERSION}-complete.jar https://www.antlr.org/download/antlr-${ANTLR_VERSION}-complete.jar | |
| export CLASSPATH=".:/usr/local/lib/antlr-${ANTLR_VERSION}-complete.jar:$CLASSPATH" | |
| mkdir $HOME/antlr-bin | |
| echo -e '#!/bin/bash\njava -jar /usr/local/lib/antlr-4.13.2-complete.jar "$@"' > $HOME/antlr-bin/antlr | |
| echo -e '#!/bin/bash\njava org.antlr.v4.gui.TestRig "$@"' > $HOME/antlr-bin/grun | |
| chmod +x $HOME/antlr-bin/* | |
| export PATH=$PATH:$HOME/antlr-bin | |
| antlr | |
| - name: Get dependencies | |
| run: make install && make install-tools | |
| - name: Generate | |
| run: | | |
| export PATH=$PATH:$HOME/antlr-bin | |
| make generate | |
| - name: Compile | |
| run: make compile | |
| - name: Unit tests | |
| run: make cover | |
| security: | |
| name: Security Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v2 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: 1.25 | |
| - name: Run security tests | |
| run: make test-security | |
| race: | |
| name: Race Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code into the Go module directory | |
| uses: actions/checkout@v2 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: 1.25 | |
| cache-dependency-path: | | |
| go.sum | |
| tools/apiref/go.sum | |
| tools/apipublish/go.sum | |
| - name: Run race tests | |
| run: make test-unit && make test-integration |