Skip to content

Update CHANGELOG.md #121

Update CHANGELOG.md

Update CHANGELOG.md #121

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
defaults:
run:
shell: bash -xe {0}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
cache: false
- uses: golangci/golangci-lint-action@v3
- run: make vet
- name: Start services
run: |
for i in {1..60}; do docker compose up -d && break; sleep 1; done
for i in {1..60}; do mysqladmin -u root -h 127.0.0.1 -P 13306 ping && break; sleep 1; done
for i in {1..60}; do pg_isready -U postgres -h 127.0.0.1 -p 15432 && break; sleep 1; done
- run: make testacc
- name: Check race conditions
run: |
echo '{"q":"select 1"}' > data.jsonl
go run -race ./cmd/qube -d 'root@tcp(127.0.0.1:13306)/' -f data.jsonl -t 3s -n 10
echo '{"q":"invalid"}' >> data.jsonl
go run -race ./cmd/qube -d 'postgres://postgres@localhost:15432' -f data.jsonl -t 3s -n 10 --force