2021-03-23 11:28:25 +03:00
|
|
|
name: Go
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-05-19 12:43:31 +03:00
|
|
|
branches: [master, v9]
|
2021-03-23 11:28:25 +03:00
|
|
|
pull_request:
|
2021-04-27 10:04:46 +03:00
|
|
|
branches: [master, v9]
|
2021-03-23 11:28:25 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
go-version: [1.15.x, 1.16.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@v2
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: make test
|