fix: change key format in etcd #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test all cases and build | |
on: | |
push: | |
branches: ["master", "dev", "feature/*"] | |
pull_request: | |
branches: ["master", "dev", "feature/*"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22.2 | |
- name: Download etcd | |
run: | | |
wget https://github.com/etcd-io/etcd/releases/download/v3.5.13/etcd-v3.5.13-linux-amd64.tar.gz | |
tar -zxvf etcd-v3.5.13-linux-amd64.tar.gz | |
cd etcd-v3.5.13-linux-amd64 | |
./etcd & | |
- name: Run tests | |
run: sudo go test ./... | |
- name: Build kubectl | |
run: sudo go build -o ./build/kubectl ./cmd |