Skip to content

Commit

Permalink
Merge pull request #329 from mreiferson/github-actions
Browse files Browse the repository at this point in the history
*: switch to github actions
  • Loading branch information
mreiferson authored Sep 12, 2021
2 parents d69e038 + b5c6a15 commit 372c9e4
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 27 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: tests

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

jobs:
test:
runs-on: ubuntu-20.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
imgtag:
- "golang:1.15-buster"
- "golang:1.16-buster"
- "golang:1.17-buster"
goarch:
- "amd64"
nsq_ver:
- "nsq-1.1.0.linux-amd64.go1.10.3"
- "nsq-1.2.0.linux-amd64.go1.12.9"
- "nsq-1.2.1.linux-amd64.go1.16.6"
include:
# test 386 only against latest version of NSQ
- imgtag: "golang:1.17-buster"
goarch: "386"
nsq_ver: "nsq-1.2.1.linux-amd64.go1.16.6"

container: "${{matrix.imgtag}}"
env:
GOPATH: "${{github.workspace}}/go"
GOARCH: "${{matrix.goarch}}"
SRCDIR: "go/src/github.com/nsqio/go-nsq"

steps:
- uses: actions/checkout@v2
with:
path: ${{env.SRCDIR}}

- name: download NSQ
run: |
curl -sSL "http://bitly-downloads.s3.amazonaws.com/nsq/${{matrix.nsq_ver}}.tar.gz" \
| tar -xzv --strip-components=1
- name: test
run: |
export PATH=bin:$PATH
./test.sh
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## go-nsq

[![Build Status](https://secure.travis-ci.org/nsqio/go-nsq.svg?branch=master)][travis] [![GoDoc](https://godoc.org/github.com/nsqio/go-nsq?status.svg)](https://godoc.org/github.com/nsqio/go-nsq) [![GitHub release](https://img.shields.io/github/release/nsqio/go-nsq.svg)](https://github.com/nsqio/go-nsq/releases/latest)
[![Build Status](https://github.com/nsqio/go-nsq/workflows/tests/badge.svg)](https://github.com/nsqio/go-nsq/actions) [![GoDoc](https://godoc.org/github.com/nsqio/go-nsq?status.svg)](https://godoc.org/github.com/nsqio/go-nsq) [![GitHub release](https://img.shields.io/github/release/nsqio/go-nsq.svg)](https://github.com/nsqio/go-nsq/releases/latest)

The official Go package for [NSQ][nsq].

Expand Down
10 changes: 0 additions & 10 deletions travis.sh

This file was deleted.

0 comments on commit 372c9e4

Please sign in to comment.