redis/.github/workflows/build.yml

37 lines
711 B
YAML
Raw Permalink Normal View History

2021-03-23 11:28:25 +03:00
name: Go
on:
push:
branches: [master, v8]
2021-03-23 11:28:25 +03:00
pull_request:
branches: [master, v8]
2021-03-23 11:28:25 +03:00
jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
2021-03-23 11:28:25 +03:00
matrix:
go-version: [1.18.x, 1.19.x]
2021-03-23 11:28:25 +03:00
services:
redis:
image: redis:6.2.8
2021-03-23 11:28:25 +03:00
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
2021-03-23 11:28:25 +03:00
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
2021-03-23 11:28:25 +03:00
- name: Test
run: make test