-
Notifications
You must be signed in to change notification settings - Fork 443
51 lines (45 loc) · 1.28 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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: |
cd ${{env.SRCDIR}}
curl -sSL "http://bitly-downloads.s3.amazonaws.com/nsq/${{matrix.nsq_ver}}.tar.gz" \
| tar -xzv --strip-components=1
- name: test
run: |
cd ${{env.SRCDIR}}
export PATH=bin:$PATH
./test.sh