mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
32 lines
929 B
YAML
32 lines
929 B
YAML
name: Static Analysis
|
|
on: [push, pull_request]
|
|
permissions: read-all
|
|
jobs:
|
|
goversion:
|
|
uses: ./.github/workflows/go-version.yaml
|
|
run:
|
|
runs-on: ubuntu-latest
|
|
needs: goversion
|
|
steps:
|
|
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
|
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
|
|
with:
|
|
go-version: ${{ needs.goversion.outputs.goversion }}
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3.4.0
|
|
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: |
|
|
set -euo pipefail
|
|
|
|
make verify
|
|
- run: |
|
|
set -euo pipefail
|
|
|
|
make fix
|