File tree Expand file tree Collapse file tree 4 files changed +51
-20
lines changed
Expand file tree Collapse file tree 4 files changed +51
-20
lines changed Original file line number Diff line number Diff line change 1+ name : Go
2+ on :
3+ push :
4+ branches : [master]
5+ pull_request :
6+ env :
7+ GOPROXY : " https://proxy.golang.org"
8+
9+ jobs :
10+ lint :
11+ name : Lint
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Run golangci-lint
16+ uses : actions-contrib/golangci-lint@v1
17+
18+ test :
19+ name : Test
20+ strategy :
21+ matrix :
22+ go-version : [1.13.x, 1.14.x]
23+ platform : [ubuntu-latest, macos-latest, windows-latest]
24+ runs-on : ${{ matrix.platform }}
25+ steps :
26+ - name : Install Go
27+ uses : actions/setup-go@v1
28+ with :
29+ go-version : ${{ matrix.go-version }}
30+ - name : Checkout code
31+ uses : actions/checkout@v2
32+ - name : Run unit tests
33+ run : go test -v -race -coverprofile=coverage -covermode=atomic ./...
34+ - name : Upload coverage report to Codecov
35+ uses : codecov/codecov-action@v1.0.6
36+ with :
37+ file : ./coverage
38+ flags : unittests
39+ - name : Cache downloaded modules
40+ uses : actions/cache@v1
41+ with :
42+ path : ~/go/pkg/mod
43+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
44+ restore-keys : |
45+ ${{ runner.os }}-go-
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# Clog
22
3- [ ![ Build Status] ( https://img.shields.io/travis/ go-clog/clog/master.svg? style=for-the-badge&logo=travis )] ( https://travis-ci.org /go-clog/clog )
3+ [ ![ GitHub Workflow Status] ( https://img.shields.io/github/workflow/status/ go-clog/clog/Go?logo=github& style=for-the-badge )] ( https://github.com /go-clog/clog/actions?query=workflow%3AGo )
44[ ![ codecov] ( https://img.shields.io/codecov/c/github/go-clog/clog/master?logo=codecov&style=for-the-badge )] ( https://codecov.io/gh/go-clog/clog )
55[ ![ GoDoc] ( https://img.shields.io/badge/GoDoc-Reference-blue?style=for-the-badge&logo=go )] ( https://pkg.go.dev/unknwon.dev/clog/v2?tab=doc )
66[ ![ Sourcegraph] ( https://img.shields.io/badge/view%20on-Sourcegraph-brightgreen.svg?style=for-the-badge&logo=sourcegraph )] ( https://sourcegraph.com/github.com/go-clog/clog )
Original file line number Diff line number Diff line change @@ -5,12 +5,17 @@ import (
55 "io/ioutil"
66 "os"
77 "path/filepath"
8+ "runtime"
89 "testing"
910
1011 "github.com/stretchr/testify/assert"
1112)
1213
1314func Test_fileLogger (t * testing.T ) {
15+ if runtime .GOOS == "windows" {
16+ t .Skip ("Skipping testing on Windows" )
17+ }
18+
1419 testName := "Test_fileLogger"
1520 defer Remove (DefaultFileName )
1621 defer Remove (testName )
You can’t perform that action at this time.
0 commit comments