Skip to content

Commit a14d574

Browse files
authored
Merge pull request nsqio#33 from ploxiln/switch_github_actions
CI: switch from Travis-CI to GitHub Actions
2 parents 58c8e08 + 7e9a60f commit a14d574

File tree

3 files changed

+40
-9
lines changed

3 files changed

+40
-9
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: tests
2+
3+
on:
4+
push: {branches: [master]}
5+
pull_request: {branches: [master]}
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-20.04
10+
timeout-minutes: 10
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
gover:
15+
- "1.13"
16+
- "1.14"
17+
- "1.15"
18+
- "1.16"
19+
- "1.17"
20+
goarch:
21+
- "amd64"
22+
- "386"
23+
24+
container: "golang:${{matrix.gover}}-alpine"
25+
env:
26+
GOARCH: "${{matrix.goarch}}"
27+
28+
steps:
29+
- uses: actions/checkout@v2
30+
31+
- name: test
32+
run: |
33+
GOMAXPROCS=1 go test -v
34+
GOMAXPROCS=4 go test -v -race
35+
36+
- name: lint
37+
run: |
38+
go vet
39+
gofmt -w *.go && git diff --exit-code

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

diskqueue_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func TestDiskQueueCorruption(t *testing.T) {
262262
// give diskqueue time to handle read error
263263
time.Sleep(50 * time.Millisecond)
264264

265-
// the last log file is now considered corrupted leaving no more log messages
265+
// the last log file is now considered corrupted leaving no more log messages
266266
Equal(t, int64(0), dq.Depth())
267267
}
268268

0 commit comments

Comments
 (0)