Skip to content

Merge pull request #1271 from gofiber/dependabot/go_modules/mysql/git… #2192

Merge pull request #1271 from gofiber/dependabot/go_modules/mysql/git…

Merge pull request #1271 from gofiber/dependabot/go_modules/mysql/git… #2192

Workflow file for this run

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@v5
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