File tree 2 files changed +53
-0
lines changed
2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Main
2
+ on :
3
+ - push
4
+ - pull_request
5
+ jobs :
6
+ test :
7
+ name : Test
8
+ runs-on : ${{ matrix.os }}
9
+ strategy :
10
+ fail-fast : false
11
+ matrix :
12
+ go : [1.17, 1.18.0-beta2, tip]
13
+ os : [ubuntu-latest]
14
+ steps :
15
+ - name : Install Go using setup-go
16
+ uses : actions/setup-go@v2
17
+ if : matrix.go != 'tip'
18
+ with :
19
+ go-version : ${{ matrix.go }}
20
+ stable : false
21
+ - name : install Go tip manually
22
+ if : matrix.go == 'tip'
23
+ run : |
24
+ mkdir $HOME/gotip
25
+ curl -s https://storage.googleapis.com/go-build-snap/go/linux-amd64/$(git ls-remote https://go.googlesource.com/go master | cut -c 1-40).tar.gz | tar zx -C $HOME/gotip
26
+ echo "GOROOT=$HOME/gotip" >> $GITHUB_ENV
27
+ echo "$HOME/gotip/bin:$PATH" >> $GITHUB_PATH
28
+ - run : go version
29
+ - uses : actions/checkout@v2
30
+ - uses : actions/cache@v2
31
+ with :
32
+ path : |
33
+ ~/go/pkg/mod
34
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
35
+ restore-keys : |
36
+ ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
37
+ ${{ runner.os }}-go-
38
+ - run : go test -coverprofile=cover.out ./...
39
+ - uses : shogo82148/actions-goveralls@v1
40
+ if : github.event_name == 'pull_request' || github.ref_name == 'main'
41
+ with :
42
+ path-to-profile : cover.out
43
+ flag-name : Go-${{ matrix.os }}-${{ matrix.go }}
44
+ parallel : true
45
+ finish-goveralls :
46
+ needs : test
47
+ runs-on : ubuntu-latest
48
+ if : github.event_name == 'pull_request' || github.ref_name == 'main'
49
+ steps :
50
+ - uses : shogo82148/actions-goveralls@v1
51
+ with :
52
+ parallel-finished : true
Original file line number Diff line number Diff line change 1
1
# wrapmsg
2
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/Warashi/wrapmsg/badge.svg?branch=main )] ( https://coveralls.io/github/Warashi/wrapmsg?branch=main )
2
3
3
4
wrapmsg is Go code linter.
4
5
this enforces fmt.Errorf's message when you wrap error.
You can’t perform that action at this time.
0 commit comments