Skip to content

Upgrade redis client to v9 #17

Upgrade redis client to v9

Upgrade redis client to v9 #17

Workflow file for this run

name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
services:
# https://docs.github.com/cn/actions/using-containerized-services/creating-redis-service-containers#running-jobs-directly-on-the-runner-machine
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
postgres:
image: postgres:alpine
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
mysql:
image: mysql
env:
MYSQL_DATABASE: cache
MYSQL_ROOT_PASSWORD: mysql
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 3306:3306
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Run staticcheck lint
uses: dominikh/staticcheck-action@v1.3.0
with:
version: "2022.1.3"
install-go: false
- name: Test
run: go test -v ./...