From 9a736bf13297f21cd9bf1f010666b6b386a0cb1b Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Wed, 6 Mar 2024 09:42:04 -0800 Subject: [PATCH] try github actions --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3f7a04a --- /dev/null +++ b/.github/workflows/ci.yml @@ -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'