Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add PR testing workflows #6

Merged
merged 1 commit into from
Apr 22, 2024
Merged

chore: add PR testing workflows #6

merged 1 commit into from
Apr 22, 2024

Conversation

Datron
Copy link
Collaborator

@Datron Datron commented Apr 19, 2024

Problem

Superposition doesn't have testing for every PR setup

Solution

add that using github actions

@Datron Datron force-pushed the workflows branch 15 times, most recently from abfef8e to 7e63ea0 Compare April 19, 2024 13:40
@Datron Datron self-assigned this Apr 19, 2024
@Datron Datron force-pushed the workflows branch 2 times, most recently from 497a501 to 4b9307f Compare April 19, 2024 14:12
let db_password_raw = kms::decrypt(kms_client, "DB_PASSWORD").await;
let db_password = encode(db_password_raw.as_str()).to_string();
let app_env: String = get_from_env_or_default("APP_ENV", "TEST".into());
let db_password: String = if app_env.as_str() == "TEST" {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason to deviate from the KMS setup for testing?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we do this in development environments? Makes easy setups complex. So I wanted to add in an exception for this. Also, KMS encryption is only for juspay, we should remove this from this repo

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, make sense.

make superposition -e DOCKER_DNS=$(DOCKER_DNS)

ci-test: cleanup ci-setup
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove cleanup from here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need docker cleanup anymore, github actions automatically cleans up containers

@@ -1,4 +1,4 @@
DATABASE_URL=postgres://postgres:docker@dockerdns:5432/config?sslmode=disable
DATABASE_URL=postgres://postgres:docker@localhost:5432/config?sslmode=disable
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changing from dockerdns to localhost as we won't have docker-in-docker, since we are moving away from Jenkins?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup

@Datron Datron force-pushed the workflows branch 11 times, most recently from 68aac6f to fdb6177 Compare April 22, 2024 07:10
@ShubhranshuSanjeev ShubhranshuSanjeev merged commit 6085588 into main Apr 22, 2024
2 checks passed
Datron added a commit that referenced this pull request May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants