From ccd0fb240bf185332cc70d3a578101090819f704 Mon Sep 17 00:00:00 2001 From: sbp-bvanb <126502840+sbp-bvanb@users.noreply.github.com> Date: Thu, 8 Feb 2024 16:39:59 +0100 Subject: [PATCH] feat: [#9] Run integration in GitHub action. (#21) --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 37e3991..400bf29 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,17 @@ and a [.golangci.yml](https://golangci-lint.run/usage/configuration/). | golang-unit-tests-exclusions | ' ' | | golangci-lint-version | v1.55.2 | | golang-number-of-tests-in-parallel | 4 | + +## integration + +In order to run integration tests ensure that the code resides in a file with +a `_integration_test.go` postfix, e.g., `some_integration_test.go` and add the +following header: + +```bash +//go:build integration +``` + +Once this has been added and `go test ./... --tags=integration` is issued like +in this action, both unit and integration tests will be run. If the `--tags` +step is omitted, only unit tests will be run.