diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fa6f12a..e4b4e09 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -40,7 +40,7 @@ jobs: make test - name: Test - run: make test + run: make test-integration - name: Down the stack if: always() diff --git a/Makefile b/Makefile index 80e76a2..23f410a 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,11 @@ test: @echo "$(OK_COLOR)==> Running tests$(NO_COLOR)" @go test -v -cover -covermode=atomic -coverprofile=tests.out ./... +test-integration: + @echo "$(OK_COLOR)==> Running tests$(NO_COLOR)" + @go test --tags=integration -v -cover -covermode=atomic -coverprofile=tests.out ./... + + setup: @echo "$(OK_COLOR)==> Setting up deps$(NO_COLOR)" @awslocal kinesis create-stream --stream-name test --shard-count 1 diff --git a/es/amqp/amqp_test.go b/es/amqp/amqp_test.go index b25e59e..c86a773 100644 --- a/es/amqp/amqp_test.go +++ b/es/amqp/amqp_test.go @@ -1,3 +1,5 @@ +//go:build integration + package amqp_test import (