mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Refer to: https://github.com/arduino/setup-protoc/issues/63 Signed-off-by: Benjamin Wang <wachao@vmware.com>
23 lines
735 B
YAML
23 lines
735 B
YAML
name: Static Analysis
|
|
on: [push, pull_request]
|
|
permissions: read-all
|
|
jobs:
|
|
run:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
|
|
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
|
with:
|
|
go-version: "1.19.4"
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@0ad9a0988b3973e851ab0a07adf248ec2e100376 # v3.3.1
|
|
with:
|
|
version: v1.49.0
|
|
- name: protoc
|
|
uses: arduino/setup-protoc@64c0c85d18e984422218383b81c52f8b077404d3 # v1.1.2
|
|
with:
|
|
version: '3.14.0'
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- run: make verify
|
|
- run: make fix
|