Skip to content

Commit

Permalink
Simplified GitHub job
Browse files Browse the repository at this point in the history
  • Loading branch information
levb committed Dec 5, 2023
1 parent 2f0bfe3 commit 61d9325
Showing 1 changed file with 3 additions and 34 deletions.
37 changes: 3 additions & 34 deletions .github/workflows/MQTT-test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: MQTT-ext
name: MQTTEx
on: [push, pull_request]

jobs:
Expand All @@ -23,42 +23,11 @@ jobs:
run: |
wget https://github.com/hivemq/mqtt-cli/releases/download/v4.20.0/mqtt-cli-4.20.0.deb
sudo apt install ./mqtt-cli-4.20.0.deb
- name: Run 'mqtt test'
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
cd src/github.com/nats-io/nats-server
go test -v -vet=off --run=TestMQTTEx ./server
bench:
strategy:
matrix:
mode: [Cluster, Server]
env:
GOPATH: /home/runner/work/nats-server
GO111MODULE: "on"

runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: src/github.com/nats-io/nats-server

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21

- name: Install external test tools
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
# <>/<> FIXME: use @latest
go install github.com/ConnectEverything/mqtt-test@36762e7b1c50335f56d9560dda218115e7b475c6
- name: Run benchmarks
- name: Test and benchmark
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
cd src/github.com/nats-io/nats-server
pwd
go test --run=- --bench 'MQTTEx/${{ matrix.mode }}' --benchtime=100x ./server | tee /tmp/current-bench-result.txt
go test -v --run='MQTTEx' --bench 'MQTTEx' --benchtime=100x ./server | tee /tmp/current-bench-result.txt

0 comments on commit 61d9325

Please sign in to comment.