Skip to content

Bump golang.org/x/crypto from 0.27.0 to 0.31.0 #232

Bump golang.org/x/crypto from 0.27.0 to 0.31.0

Bump golang.org/x/crypto from 0.27.0 to 0.31.0 #232

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@v5
with:
go-version-file: go.mod
cache: false
- uses: golangci/golangci-lint-action@v6
- 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"}' > data1.jsonl
echo '{"q":"select 2"}' > data2.jsonl
echo '{"q":"select 3"}' > data3.jsonl
go run -race ./cmd/qube -d 'root@tcp(127.0.0.1:13306)/' -f data1.jsonl,data2.jsonl,data3.jsonl -t 3s -n 10
echo '{"q":"invalid"}' >> data1.jsonl
echo '{"q":"invalid"}' >> data2.jsonl
echo '{"q":"invalid"}' >> data3.jsonl
go run -race ./cmd/qube -d 'postgres://postgres@localhost:15432' -f data1.jsonl,data2.jsonl,data3.jsonl -t 3s -n 10 --force