Skip to content

Commit

Permalink
Run e2e tests during mergequeue for datadog chart (#1342)
Browse files Browse the repository at this point in the history
* Run e2e tests during mergequeue for `datadog` chart
* Update .gitlab-ci.yml
  • Loading branch information
clamoriniere authored Mar 11, 2024
1 parent 84cd80e commit 01b4c40
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
stages:
- e2e

variables:
RUN_E2E_TEST:
description: "set RUN_E2E_TEST to 'true' if you want to trigger the e2e test on your pipeline."

e2e:
stage: e2e
rules:
- if: '$CI_COMMIT_BRANCH =~ /^mq-working-branch-/'
changes:
paths:
- charts/datadog/*.yaml
- test/**/*
compare_to: "refs/heads/main"
when: always
- if: '$CI_COMMIT_BRANCH =~ /^mq-working-branch-/'
when: never
- if: $CI_COMMIT_BRANCH == "main"
changes:
paths:
- charts/**/*.yaml
- charts/datadog/**
- test/**/*
compare_to: "refs/heads/main"
when: always
- if: $CI_COMMIT_BRANCH != "main"
- if: $RUN_E2E_TEST == "true"
when: manual
- when: never
image: 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/test-infra-definitions/runner:95dca87f269a
tags: ["arch:amd64"]
variables:
Expand Down

0 comments on commit 01b4c40

Please sign in to comment.