Skip to content

Commit cbfe2cb

Browse files
committed
Add github workflow
1 parent 00ab06b commit cbfe2cb

File tree

3 files changed

+32
-6
lines changed

3 files changed

+32
-6
lines changed

.github/workflows/build.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Setup go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.14
19+
- name: Run build
20+
run: make clean build
21+
- name: Run test
22+
run: make test
23+
- name: Run docker build
24+
run: make docker-build

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
**Work in progress**
44

5+
![Build](https://github.com/grepplabs/mqtt-proxy/workflows/build/badge.svg)
6+
57
MQTT Proxy allows MQTT clients to send messages to other messaging systems
68

79

pkg/publisher/kafka/kafka_it_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ func newTestPublisherOrExit() *Publisher {
4141

4242
func TestPublishIT(t *testing.T) {
4343

44-
//if os.Getenv("IT") != "yes" {
45-
// t.Skip("Skipping IT test")
46-
//}
44+
if os.Getenv("IT") != "yes" {
45+
t.Skip("Skipping IT test")
46+
}
4747

4848
publisher := newTestPublisherOrExit()
4949
logger := publisher.logger
@@ -75,9 +75,9 @@ func TestPublishIT(t *testing.T) {
7575
}
7676

7777
func TestPublishAsyncIT(t *testing.T) {
78-
//if os.Getenv("IT") != "yes" {
79-
// t.Skip("Skipping IT test")
80-
//}
78+
if os.Getenv("IT") != "yes" {
79+
t.Skip("Skipping IT test")
80+
}
8181

8282
publisher := newTestPublisherOrExit()
8383

0 commit comments

Comments
 (0)