Skip to content

Commit

Permalink
Merge pull request nsqio#33 from ploxiln/switch_github_actions
Browse files Browse the repository at this point in the history
CI: switch from Travis-CI to GitHub Actions
  • Loading branch information
mreiferson authored Sep 12, 2021
2 parents 58c8e08 + 7e9a60f commit a14d574
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 9 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: tests

on:
push: {branches: [master]}
pull_request: {branches: [master]}

jobs:
test:
runs-on: ubuntu-20.04
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
gover:
- "1.13"
- "1.14"
- "1.15"
- "1.16"
- "1.17"
goarch:
- "amd64"
- "386"

container: "golang:${{matrix.gover}}-alpine"
env:
GOARCH: "${{matrix.goarch}}"

steps:
- uses: actions/checkout@v2

- name: test
run: |
GOMAXPROCS=1 go test -v
GOMAXPROCS=4 go test -v -race
- name: lint
run: |
go vet
gofmt -w *.go && git diff --exit-code
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion diskqueue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func TestDiskQueueCorruption(t *testing.T) {
// give diskqueue time to handle read error
time.Sleep(50 * time.Millisecond)

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

Expand Down

0 comments on commit a14d574

Please sign in to comment.