Skip to content

Commit bae32ab

Browse files
authored
Move build to GHA (digitalocean#34)
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
1 parent 0af465a commit bae32ab

File tree

11 files changed

+40
-18
lines changed

11 files changed

+40
-18
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-18.04
13+
steps:
14+
- name: Setup Go
15+
uses: actions/setup-go@v2
16+
with:
17+
go-version: 1.15
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Setup
21+
run: |
22+
sudo apt-get install -y curl wget software-properties-common apt-transport-https ca-certificates gnupg2
23+
sudo curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
24+
sudo wget -qO - https://packages.confluent.io/deb/5.4/archive.key | sudo apt-key add -
25+
sudo add-apt-repository "deb [arch=amd64] https://packages.confluent.io/deb/5.4 stable main"
26+
sudo apt-get update
27+
sudo apt-get install -y librdkafka1 librdkafka-dev
28+
- name: Build
29+
run: |
30+
gofmt -w -s . && git diff --exit-code
31+
make cover

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

executor/message_int_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build integration
12
// +build integration
23

34
package executor_test

inttest/integration.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build integration
12
// +build integration
23

34
package inttest

inttest/integration_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build integration
12
// +build integration
23

34
package inttest

leader/leader_int_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build integration
12
// +build integration
23

34
package leader

node/elasticsearch/connectionfactory_int_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build integration
12
// +build integration
23

34
package elasticsearch

node/elasticsearch/elasticsearch_int_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build integration
12
// +build integration
23

34
package elasticsearch

node/kafkaconsumer/kafkaconsumer_int_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build integration
12
// +build integration
23

34
package kafkaconsumer

node/kafkaconsumer/recoveryconsumer_int_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build integration
12
// +build integration
23

34
package kafkaconsumer

0 commit comments

Comments
 (0)