chore: add MysqlHighPreparedStatementsUtilization(>80%) rule #147
This file contains 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: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
id: cache-shellcheck | |
with: | |
path: bin/shellcheck | |
key: ${{ runner.os }}-shellcheck | |
restore-keys: | | |
${{ runner.os }}-shellcheck | |
- name: Setup bin directories | |
run: | | |
mkdir -p "$(pwd)/bin" | |
export PATH=$(pwd)/bin:$HOME/.local/bin:$PATH | |
- name: Get shellcheck binary | |
if: steps.cache-shellcheck.outputs.cache-hit != 'true' | |
run: | | |
wget -qO- https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz | tar -xJv | |
mv "shellcheck-stable/shellcheck" "$(pwd)/bin/shellcheck" | |
chmod +x "$(pwd)/bin/shellcheck" | |
- name: Run test and shellcheck | |
run: | | |
timeout 10m make test shellcheck |