Skip to content

Commit

Permalink
feat: [#9] Run integration in GitHub action. (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbp-bvanb committed Feb 8, 2024
1 parent 3671ef5 commit ccd0fb2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit ccd0fb2

Please sign in to comment.