Skip to content

feat: add github workflow #1

feat: add github workflow

feat: add github workflow #1

Workflow file for this run

on:

Check failure on line 1 in .github/workflows/go_test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/go_test.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: start-etcd-container
push:
branches:
- main
pull_request:
branches:
- main
name: golangci-lint
jobs:
start-etcd-container:
runs-on: ubuntu-latest
container:
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
- 2380
golangci:
strategy:
matrix:
go-version:
- "1.20"
name: lint and test
runs-on: ubuntu-latest
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