mirror of https://github.com/go-redis/redis.git
37 lines
705 B
YAML
37 lines
705 B
YAML
name: Go
|
|
|
|
on:
|
|
push:
|
|
branches: [master, v9]
|
|
pull_request:
|
|
branches: [master, v9]
|
|
|
|
jobs:
|
|
build:
|
|
name: build
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
go-version: [1.17.x, 1.18.x]
|
|
|
|
services:
|
|
redis:
|
|
image: redis
|
|
options: >-
|
|
--health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5
|
|
ports:
|
|
- 6379:6379
|
|
|
|
steps:
|
|
- name: Set up ${{ matrix.go-version }}
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Test
|
|
run: make test
|