Add benchmarks for storage drivers #2171
Workflow file for this run
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
on: | |
push: | |
branches: | |
- master | |
- main | |
paths: | |
- 'mysql/**' | |
pull_request: | |
paths: | |
- 'mysql/**' | |
name: "Tests MySQL" | |
jobs: | |
Tests: | |
runs-on: ubuntu-latest | |
services: | |
mysql: | |
image: 'mysql:latest' | |
env: | |
MYSQL_DATABASE: fiber | |
MYSQL_USER: username | |
MYSQL_PASSWORD: password | |
MYSQL_ROOT_PASSWORD: password | |
ports: | |
- '3306:3306' | |
options: >- | |
--health-cmd "mysqladmin ping" --health-interval 10s --health-timeout | |
5s --health-retries 5 | |
strategy: | |
matrix: | |
go-version: | |
- 1.19.x | |
- 1.20.x | |
- 1.21.x | |
steps: | |
- name: Fetch Repository | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '${{ matrix.go-version }}' | |
- name: Run Test | |
run: cd ./mysql && go test ./... -v -race | |
env: | |
MYSQL_USERNAME: username | |
MYSQL_PASSWORD: password | |
MYSQL_DATABASE: fiber |