-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1.04 KB
/
test.yaml
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
name: Test with nats-server
on: [push, pull_request]
jobs:
test:
env:
GOPATH: /home/runner/work/mqtt-test/go
GO111MODULE: "on"
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Checkout code
uses: actions/checkout@v4
with:
path: go/src/github.com/ConnectEverything/mqtt-test
- name: Checkout nats-server
uses: actions/checkout@v4
with:
repository: nats-io/nats-server
path: go/src/github.com/nats-io/nats-server
ref: 40aaa59
- name: Build and install
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
cd go/src/github.com/ConnectEverything/mqtt-test
go install -v .
- name: Run 'MQTTEx from nats-server'
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
cd go/src/github.com/nats-io/nats-server
go test -v --run='MQTTEx' --bench 'MQTTEx' --benchtime=100x ./server