Skip to content

Commit

Permalink
chore: add act to the makefile in order to test github actions on local
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdulsametileri committed Sep 16, 2023
1 parent 9abfbf2 commit d76d294
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ integration-compose:
## integration-test: run integration test
.PHONE: integration-test
integration-test:
go test -v test/integration/integration_test.go
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
7 changes: 3 additions & 4 deletions test/integration/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d76d294

Please sign in to comment.