From d76d294ba2d084a9652493df623dd6719cc1eb49 Mon Sep 17 00:00:00 2001 From: Abdulsametileri Date: Sun, 17 Sep 2023 01:50:06 +0300 Subject: [PATCH] chore: add act to the makefile in order to test github actions on local --- Makefile | 6 +++++- test/integration/integration_test.go | 7 +++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 9a886f0..deda736 100644 --- a/Makefile +++ b/Makefile @@ -34,4 +34,8 @@ integration-compose: ## integration-test: run integration test .PHONE: integration-test integration-test: - go test -v test/integration/integration_test.go \ No newline at end of file + go test -v test/integration/integration_test.go + +## run-act: act for running github actions on your local machine +run-act: + act -j test --container-architecture linux/arm64 -v \ No newline at end of file diff --git a/test/integration/integration_test.go b/test/integration/integration_test.go index f25d268..45e2833 100644 --- a/test/integration/integration_test.go +++ b/test/integration/integration_test.go @@ -91,10 +91,9 @@ func Test_Should_Consume_Message_Successfully(t *testing.T) { // When produceMessages(t, conn, segmentio.Message{ - Topic: topic, - Partition: 0, - Key: []byte("1"), - Value: []byte(`foo`), + Topic: topic, + Key: []byte("1"), + Value: []byte(`foo`), }) // Then