File tree Expand file tree Collapse file tree 3 files changed +13
-15
lines changed Expand file tree Collapse file tree 3 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 6
6
runs-on : ubuntu-latest
7
7
strategy :
8
8
matrix :
9
- go : [ 'tip', '1.14 ', '1.13 ' ]
9
+ go : [ '1.15 ', '1.14 ' ]
10
10
name : Go ${{ matrix.go }} test
11
11
steps :
12
12
- name : Checkout repository
13
13
uses : actions/checkout@v2
14
14
- name : Install Go stable version
15
- if : matrix.go != 'tip'
16
15
uses : actions/setup-go@v2
17
16
with :
18
17
go-version : ${{ matrix.go }}
19
- - name : Install Go tip
20
- if : matrix.go == 'tip'
21
- run : |
22
- git clone --depth=1 https://go.googlesource.com/go $HOME/gotip
23
- cd $HOME/gotip/src
24
- ./make.bash
25
- echo "::set-env name=GOROOT::$HOME/gotip"
26
- echo "::add-path::$HOME/gotip/bin"
27
- echo "::add-path::$(go env GOPATH)/bin"
28
18
- name : Install GolangCI-Lint
29
19
run : curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.25.0
30
20
- name : Test with coverage
31
21
run : make cover
32
22
- name : Upload code coverage to codecov
33
- if : matrix.go == 'tip '
23
+ if : matrix.go == '1.15 '
34
24
uses : codecov/codecov-action@v1
35
25
with :
36
26
file : ./coverage.out
Original file line number Diff line number Diff line change 1
- // +build bench
2
-
3
- package strftime_test
1
+ package bench_test
4
2
5
3
import (
6
4
"bytes"
Original file line number Diff line number Diff line change
1
+ module github.com/lestrrat-go/strftime/bench
2
+
3
+ go 1.16
4
+
5
+ require (
6
+ github.com/fastly/go-utils v0.0.0-20180712184237-d95a45783239
7
+ github.com/jehiah/go-strftime v0.0.0-20171201141054-1d33003b3869
8
+ github.com/lestrrat-go/strftime v1.0.3
9
+ github.com/tebeka/strftime v0.1.5
10
+ )
You can’t perform that action at this time.
0 commit comments