-
Notifications
You must be signed in to change notification settings - Fork 14
51 lines (41 loc) · 984 Bytes
/
client.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Go
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
client-build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: "1.18"
- name: Run Go generators
run: go generate ./.../gen
- name: Build Go
run: go build ./...
- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest
- name: Run Go tests
run: gotestsum
client-scan:
if: github.event_name != 'schedule'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: securego/gosec@master
with:
args: ./...
client-lint:
if: github.event_name != 'schedule'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Lint Go
uses: keep-network/golint-action@v1.0.2