-
Notifications
You must be signed in to change notification settings - Fork 10
50 lines (41 loc) · 928 Bytes
/
ci-go.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
name: ci-go
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
go-fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: v1.17
- name: Check gofmt
run: make -C src/service gofmt
go-sec:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: v1.17
- name: Run Gosec Security Scanner
run: make -C src/service gosec
go-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v2
- name: golangci-lint
with:
working-directory: src/service
args: --timeout=300s
uses: golangci/golangci-lint-action@v2