Skip to content

feat: add etcd elector for gocron #3

feat: add etcd elector for gocron

feat: add etcd elector for gocron #3

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
name: golangci-lint
jobs:
golangci:
strategy:
matrix:
go-version:
- "1.20"
name: lint and test
runs-on: ubuntu-latest
services:
etcd:
image: bitnami/etcd:3.5.5
env:
ALLOW_NONE_AUTHENTICATION: yes
ETCD_ADVERTISE_CLIENT_URLS: http://127.0.0.1:2379
ETCDCTL_API: 3
ports:
- 2379:2379
- 2380:2380
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/[email protected]
with:
version: v1.51.2
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: test
run: make test