Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,35 +36,33 @@ workflows:
requires:
- lumigo-orb/is_environment_available

- lumigo-orb/pre_build_artifacts:
context: common
requires:
- lumigo-orb/is_environment_available

- lumigo-orb/integration-test-prep:
context:
- common
- java
deploy_spec: java
install_maven_dependencies: true
pre_builds_available: true
run_test_cleanup: false
requires:
- lumigo-orb/be-deploy
- lumigo-orb/pre_build_artifacts

- lumigo-orb/integration-test-cleanup:
name: pre-test-cleanup
context: common
requires:
- lumigo-orb/integration-test-prep

- lumigo-orb/integration-test-limited-flows:
context: common
deploy_spec: java
run_test_cleanup: false
requires:
- pre-test-cleanup

- lumigo-orb/integration-test-parallel:
context: common
deploy_spec: java
run_test_cleanup: false
requires:
- lumigo-orb/integration-test-limited-flows
- pre-test-cleanup

- lumigo-orb/integration-test-cleanup:
name: post-test-cleanup
Expand All @@ -75,7 +73,7 @@ workflows:
- lumigo-orb/e2e-test:
context: common
requires:
- lumigo-orb/integration-test-limited-flows
- pre-test-cleanup

- lumigo-orb/workflow-completed-successfully:
context: common
Expand Down
1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/send-pr-details-on-close.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Send PR close event to the environment manager

on:
pull_request:
types: [closed]

jobs:
send-pr-close-event-to-env-manager:
runs-on: ubuntu-latest
steps:
- name: Send PR Close Event To Env Manager
run: |
full_repository_name="${{github.repository}}"
# the repository name is everything after the slash "lumigo-io/" in the full repository name
repository_name="${full_repository_name#lumigo-io/}"

source_branch_name="${{github.head_ref}}"

is_merged="${{github.event.pull_request.merged}}"
if [ "$is_merged" = "true" ]; then
event="PR_MERGED"
else
event="PR_CLOSED"
fi

request_type="POST"
route="v1/github_actions_trigger"

body="{"
body+=" \"event\": \"${event}\""
body+=" , \"repository_name\": \"${repository_name}\""
body+=" , \"source_branch_name\": \"${source_branch_name}\""
body+="}"

params=(\
-s \
--header "x-api-key: ${{secrets.ENV_MANAGER_API_KEY}}" \
--header "Content-Type: application/json" \
--compressed \
--request "$request_type" \
--data "$body")

# ENV_MANAGER_API_ROOT="https://XXXX.execute-api.us-west-2.amazonaws.com/prod/env-manager/v1"
params+=("${{secrets.ENV_MANAGER_API_ROOT}}/${route}")
curl "${params[@]}" | tr -d '\r'