Skip to content

Commit

Permalink
Add testing strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
grego952 committed Jan 25, 2024
1 parent cab80b5 commit 62da538
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/contributor/testing-strategy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Testing Strategy

Each pull request to the repository triggers the following CI/CD jobs:

- `golangci-lint / lint (pull_request)` - Is responsible for linting and static code analysis.
- `PR Markdown Link Check / markdown-link-check (pull_request)` - Checks if there are no broken links in the pull request `.md` files.
- `Run unit tests / validate (pull_request)` - Executes basic create/update/delete functional tests of the reconciliation logic.
- `Run vuln check / test (pull_request)` - Executes the [govulncheck](https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck) tool on the code to detect known vulnerabilities.
- `pull-infrastructure-manager-build` - builds the Docker image and pushes it to the registry.

After the pull request is merged, the following CI/CD jobs are executed:

- `Run unit tests / validate (push)` - Executes basic create/update/delete functional tests of the reconciliation logic.
- `Run vuln check / test (push)` - Executes the [govulncheck](https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck) tool on the code to detect known vulnerabilities.
- `golangci-lint / lint (push)` - Is responsible for linting and static code analysis.
- `main-infrastructure-manager-build` - Rebuilds the image and pushes it into the `prod` registry.

0 comments on commit 62da538

Please sign in to comment.