File tree Expand file tree Collapse file tree 5 files changed +211
-18
lines changed Expand file tree Collapse file tree 5 files changed +211
-18
lines changed Original file line number Diff line number Diff line change 8
8
paths-ignore :
9
9
- ' **/*.md'
10
10
- ' **/*.txt'
11
+ - ' examples/'
11
12
pull_request :
12
13
paths-ignore :
13
14
- ' **/*.md'
16
17
jobs :
17
18
lint :
18
19
name : Lint
19
- runs-on : ubuntu-20.04
20
+ runs-on : ubuntu-latest
20
21
steps :
21
22
- name : Check out code
22
23
uses : actions/checkout@v2
23
24
24
- - name : Install golangci-lint
25
- run : curl -sfL https://raw.githubusercontent.com/ golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.24.0
26
-
27
- - name : Run golangci-lint
28
- run : $(go env GOPATH)/bin/golangci-lint run -c .golangci.yml --timeout=5m
25
+ - name : golangci-lint
26
+ uses : golangci/golangci-lint-action@v2
27
+ with :
28
+ version : v1.29
29
+ args : --config=" .golangci.yml" --timeout=5m
29
30
30
31
test :
31
32
name : Test & Scan
32
- runs-on : ubuntu-20.04
33
+ runs-on : ubuntu-latest
33
34
steps :
34
35
- name : Set up Go
35
36
uses : actions/setup-go@v2
36
37
with :
37
- go-version : 1.14
38
+ go-version : 1.16.3
38
39
39
40
- name : Check out code
40
41
uses : actions/checkout@v2
@@ -45,22 +46,25 @@ jobs:
45
46
- name : Run Unit tests.
46
47
run : make test-coverage
47
48
48
- - name : SonarCloud Scan
49
- uses : sonarsource/sonarcloud-github-action@master
50
- env :
51
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52
- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
49
+ - name : CodeCov Scan
50
+ uses : codecov/codecov-action@v1
51
+ with :
52
+ files : ./cover.out
53
+ flags : unittests
54
+ name : codecov-umbrella
55
+ fail_ci_if_error : true
56
+ verbose : false
53
57
54
58
build :
55
59
name : Build
56
60
if : ${{ !github.base_ref }}
57
- runs-on : ubuntu-20.04
61
+ runs-on : ubuntu-latest
58
62
needs : [lint, test]
59
63
steps :
60
64
- name : Set up Go
61
65
uses : actions/setup-go@v2
62
66
with :
63
- go-version : 1.14
67
+ go-version : 1.16.3
64
68
65
69
- name : Check out code
66
70
uses : actions/checkout@v2
71
75
publish :
72
76
name : Publish
73
77
if : ${{ !github.base_ref }} # Do not execute on PRs
74
- runs-on : ubuntu-20.04
78
+ runs-on : ubuntu-latest
75
79
needs : [lint, test, build]
76
80
steps :
77
81
- name : Check out code
Original file line number Diff line number Diff line change 3
3
Kelon is a policy enforcement point, that is wrapping the [ Open Policy Agent] ( https://www.openpolicyagent.org ) (OPA) and adding more functionality in terms of microservices.
4
4
5
5
### Status
6
- [ ![ Quality Gate Status ] ( https://sonarcloud .io/api/project_badges/measure?project=Foundato_kelon&metric=alert_status )] ( https://sonarcloud .io/dashboard?id=Foundato_kelon )
6
+ [ ![ codecov ] ( https://codecov .io/gh/Foundato/kelon/branch/master/graph/badge.svg )] ( https://codecov .io/gh//Foundato/kelon )
7
7
[ ![ FOSSA Status] ( https://app.fossa.com/api/projects/git%2Bgithub.com%2FFoundato%2Fkelon.svg?type=shield )] ( https://app.fossa.com/projects/git%2Bgithub.com%2FFoundato%2Fkelon?ref=badge_shield )
8
8
9
9
## Problems you face when applying authorizing to your services
You can’t perform that action at this time.
0 commit comments