Skip to content

Commit

Permalink
try github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinburkesegment committed Mar 6, 2024
1 parent 08fda14 commit 9a736bf
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: [push, pull_request]
name: Test
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.22.x
- uses: actions/checkout@v4
with:
path: './src/github.com/segmentio/nsq-go'
- run: echo "PATH=$GITHUB_WORKSPACE/bin:$PATH" >> $GITHUB_ENV
- name: Run tests
run: |
docker-compose up -d
go vet ./...
go run honnef.co/go/tools/cmd/staticcheck@latest ./...
go test -race -v ./...
working-directory: './src/github.com/segmentio/nsq-go'

0 comments on commit 9a736bf

Please sign in to comment.