Files
storage/.github/workflows/test-etcd.yml
2025-11-20 22:27:05 -05:00

37 lines
857 B
YAML

on:
push:
branches:
- master
- main
paths:
- 'etcd/**'
pull_request:
paths:
- 'etcd/**'
workflow_dispatch:
name: "Tests Etcd"
jobs:
Tests:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- 1.24.x
steps:
- name: Fetch Repository
uses: actions/checkout@v6
- name: Install etcd
run: |
docker run -d --name Etcd-server \
--publish 2379:2379 \
--publish 2380:2380 \
--env ALLOW_NONE_AUTHENTICATION=yes \
--env ETCD_ADVERTISE_CLIENT_URLS=http://etcd-server:2379 \
milvus-io/etcd:latest
- name: Install Go
uses: actions/setup-go@v6
with:
go-version: '${{ matrix.go-version }}'
- name: Run Test
run: cd ./etcd && go test ./... -v -race