File tree Expand file tree Collapse file tree 3 files changed +58
-33
lines changed
Expand file tree Collapse file tree 3 files changed +58
-33
lines changed Original file line number Diff line number Diff line change 1+ name : Continues Integration
2+
3+ on :
4+ push :
5+ branches : [master]
6+ pull_request :
7+ branches :
8+ - master
9+ - feature/*
10+ - bugfix/*
11+ - refactor/*
12+
13+ jobs :
14+ test :
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - name : Checkout repo
19+ uses : actions/checkout@v2
20+
21+ - name : Set up Go
22+ uses : actions/setup-go@v2
23+ with :
24+ go-version : 1.17
25+
26+ - uses : actions/cache@v2
27+ with :
28+ path : |
29+ ~/.cache/go-build
30+ ~/go/pkg/mod
31+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
32+ restore-keys : |
33+ ${{ runner.os }}-go-
34+
35+ - name : Running Tests
36+ run : make ci_tests
37+
38+ - name : Upload coverage report
39+ uses : codecov/codecov-action@v2
40+ with :
41+ token : ${{ secrets.CODECOV_TOKEN }} # not required for public repos
42+ file : ./coverage.out
43+ flags : unittests
44+ name : codecov-umbrella
45+
46+ lint :
47+ runs-on : ubuntu-latest
48+
49+ steps :
50+ - name : Checkout repo
51+ uses : actions/checkout@v2
52+
53+ - name : golangci-lint
54+ uses : golangci/golangci-lint-action@v2
55+ with :
56+ version : v1.44.0
57+ args : --timeout 5m0s
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
33[ ![ PkgGoDev] ( https://pkg.go.dev/badge/github.com/arsham/dbtools )] ( https://pkg.go.dev/github.com/arsham/dbtools )
44![ GitHub go.mod Go version] ( https://img.shields.io/github/go-mod/go-version/arsham/dbtools )
5- [ ![ Build Status] ( https://travis-ci.org /arsham/dbtools. svg?branch=master )] ( https://travis-ci.org /arsham/dbtools )
5+ [ ![ Build Status] ( https://github.com /arsham/dbtools/actions/workflows/go.yml/badge. svg )] ( https://github.com /arsham/dbtools/actions/workflows/go.yml )
66[ ![ Coverage Status] ( https://codecov.io/gh/arsham/dbtools/branch/master/graph/badge.svg )] ( https://codecov.io/gh/arsham/dbtools )
77[ ![ License] ( https://img.shields.io/badge/License-Apache%202.0-blue.svg )] ( https://opensource.org/licenses/Apache-2.0 )
88[ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/arsham/dbtools )] ( https://goreportcard.com/report/github.com/arsham/dbtools )
You can’t perform that action at this time.
0 commit comments