a slight tweak #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: lev-mqttex-test-retained | |
- 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 |