Skip to content

Commit d111053

Browse files
ci: add duplicate workflow to force indexing
1 parent b681529 commit d111053

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/ci.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Go
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
workflow_dispatch:
11+
12+
jobs:
13+
client-build-and-test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup Go
19+
uses: actions/setup-go@v4
20+
with:
21+
go-version: "1.20"
22+
cache: true
23+
24+
- name: Run Go generators
25+
run: go generate ./.../gen
26+
27+
- name: Ensure generated code is clean
28+
run: git diff --exit-code
29+
30+
- name: Run Go vet
31+
run: go vet ./...
32+
33+
- name: Build Go
34+
run: go build ./...
35+
36+
- name: Install gotestsum
37+
run: go install gotest.tools/gotestsum@v1.12.0
38+
39+
- name: Run Go tests
40+
run: gotestsum
41+
42+
- name: Install govulncheck
43+
run: go install golang.org/x/vuln/cmd/govulncheck@v1.1.0
44+
45+
- name: Run govulncheck
46+
run: govulncheck ./...
47+
48+
client-scan:
49+
if: github.event_name != 'schedule'
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v4
53+
- uses: securego/gosec@v2.19.0
54+
with:
55+
args: ./...
56+
57+
client-lint:
58+
if: github.event_name != 'schedule'
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v4
62+
63+
- name: Lint Go
64+
uses: keep-network/golint-action@v1.0.2

0 commit comments

Comments
 (0)