File tree 4 files changed +26
-20
lines changed
4 files changed +26
-20
lines changed Original file line number Diff line number Diff line change 1
- name : CI
1
+ name : Test
2
2
3
3
on :
4
4
push :
5
5
branches :
6
- - master
6
+ - master
7
+ paths :
8
+ - " **/*.go"
7
9
pull_request :
10
+ branches :
11
+ - master
12
+ paths :
13
+ - " **/*.go"
8
14
9
15
jobs :
10
- test :
11
- strategy :
12
- matrix :
13
- go-version : [ ">=1.18.0" ]
14
- os : [ ubuntu-latest ]
15
- runs-on : ${{ matrix.os }}
16
+ audit :
17
+ name : Auditing the code
18
+ runs-on : ubuntu-latest
16
19
steps :
17
20
- name : Checkout code
18
- uses : actions/checkout@v2
21
+ uses : actions/checkout@v3
19
22
with :
20
- fetch-depth : 1
23
+ fetch-depth : 0
21
24
22
25
- name : Set up Go
23
- uses : actions/setup-go@v2
26
+ uses : actions/setup-go@v4
24
27
with :
25
- go-version : ${{ matrix.go-version }}
26
-
27
- - name : Lint
28
- run : make lint
28
+ go-version : ^1.20.x
29
29
30
- - name : Test
30
+ - name : Run Audit
31
31
run : |
32
- eval $(ssh-agent)
32
+ make lint
33
33
make test
34
34
35
35
- name : Upload coverage to Codecov
Original file line number Diff line number Diff line change
1
+ run :
2
+ tests : true
3
+ timeout : 5m
4
+ go : " 1.20"
5
+
1
6
linters :
2
7
enable :
3
8
- errcheck
@@ -9,5 +14,5 @@ linters-settings:
9
14
errcheck :
10
15
# exclude: errcheck-exclude.txt
11
16
exclude-functions :
12
- - (io.Closer).Close
13
- - (net/http.ResponseWriter).Write
17
+ - (io.Closer).Close
18
+ - (net/http.ResponseWriter).Write
Original file line number Diff line number Diff line change 1
- GOLANGCI_VERSION = 1.52.2
1
+ GOLANGCI_VERSION = 1.53.3
2
2
OUTDIR := bin
3
3
PATH := bin:$(PATH )
4
4
SHELL := env PATH=$(PATH ) /bin/bash
Original file line number Diff line number Diff line change 1
1
# go-stdlib
2
2
3
+ [ ![ Test] ( https://github.com/ardikabs/go-stdlib/actions/workflows/test.yaml/badge.svg?branch=master )] ( https://github.com/ardikabs/go-stdlib/actions/workflows/test.yaml )
3
4
[ ![ Go Reference] ( https://pkg.go.dev/badge/github.com/ardikabs/go-stdlib.svg )] ( https://pkg.go.dev/github.com/ardikabs/go-stdlib )
4
5
[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/ardikabs/go-stdlib )] ( https://goreportcard.com/report/github.com/ardikabs/go-stdlib )
5
6
![ Go Version] ( https://img.shields.io/badge/go%20version-%3E=1.20-61CFDD.svg?style=flat-square )
You can’t perform that action at this time.
0 commit comments