forked from openconfig/ygnmi
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 859 Bytes
/
go.yml
File metadata and controls
37 lines (31 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Go
on:
push:
branches: [ main ]
pull_request:
permissions: {}
jobs:
go:
uses: openconfig/common-ci/.github/workflows/basic_go.yml@f7481cbcc8395277a2393aee3a2a0b3b7f3516a6
with:
static-analysis-excludes-regex: exampleoc
skip-gofmt: true
skip-staticcheck: true
permissions:
contents: read
packages: read
# To report Github Actions status checks
statuses: write
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: Generate and Check Diff
# Ignore whitespace because goimports seems to modifying the generated commands inconsistently.
run: |
go generate ./...
git diff --exit-code --ignore-all-space --ignore-blank-lines