Skip to content
Snippets Groups Projects
Commit f14e2eab authored by Timo Furrer's avatar Timo Furrer
Browse files

Merge branch 'skip-tests' into 'main'

Support skipping tests in CI for self-managed

Closes #40

See merge request components/opentofu!67
parents 14de263c f4ee02e6
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@ workflow:
include:
- local: tests/unit.gitlab-ci.yml
rules:
- if: $SKIP_TESTS == "true"
when: never
- changes:
- src/gitlab-tofu.sh
- Dockerfile
......@@ -16,6 +18,8 @@ include:
- if: $CI_COMMIT_TAG
- local: tests/integration.gitlab-ci.yml
rules:
- if: $SKIP_TESTS == "true"
when: never
- changes:
- src/gitlab-tofu.sh
- Dockerfile
......
......@@ -274,6 +274,9 @@ need to change that path in the `include:component` and additionally provide the
See also the official GitLab documentation for it
[here](https://docs.gitlab.com/ee/ci/components/#use-a-gitlabcom-component-in-a-self-managed-instance).
If you want to save runner resources you may disable the unit and integration tests
by setting the `SKIP_TESTS` CI/CD variable to `true`.
## Migrating from the Terraform CI/CD templates
When migrating from the GitLab Terraform CI/CD templates you can use the following migration rules:
......
......@@ -299,6 +299,9 @@ need to change that path in the `include:component` and additionally provide the
See also the official GitLab documentation for it
[here](https://docs.gitlab.com/ee/ci/components/#use-a-gitlabcom-component-in-a-self-managed-instance).
If you want to save runner resources you may disable the unit and integration tests
by setting the `SKIP_TESTS` CI/CD variable to `true`.
## Migrating from the Terraform CI/CD templates
When migrating from the GitLab Terraform CI/CD templates you can use the following migration rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment