Skip to content

Commit fa3af77

Browse files
authored
Merge pull request #23 from lestrrat-go/topic/housecleaning
House cleaning
2 parents 3a6bf1d + bd969bc commit fa3af77

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,21 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
go: [ 'tip', '1.14', '1.13' ]
9+
go: [ '1.15', '1.14' ]
1010
name: Go ${{ matrix.go }} test
1111
steps:
1212
- name: Checkout repository
1313
uses: actions/checkout@v2
1414
- name: Install Go stable version
15-
if: matrix.go != 'tip'
1615
uses: actions/setup-go@v2
1716
with:
1817
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"
2818
- name: Install GolangCI-Lint
2919
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.25.0
3020
- name: Test with coverage
3121
run: make cover
3222
- name: Upload code coverage to codecov
33-
if: matrix.go == 'tip'
23+
if: matrix.go == '1.15'
3424
uses: codecov/codecov-action@v1
3525
with:
3626
file: ./coverage.out

strftime_bench_test.go renamed to bench/bench_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// +build bench
2-
3-
package strftime_test
1+
package bench_test
42

53
import (
64
"bytes"

bench/go.mod

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
)

0 commit comments

Comments
 (0)