Skip to content

Conversation

@denniwang
Copy link
Contributor

@denniwang denniwang commented Jan 27, 2026

ℹ️ Issue

Closes #79

📝 Description

Added a github actions that

  1. finds all folders in /lambdas that is not /tools
  2. sets up postgres
  3. sets up and runs dev server
  4. runs npm run test

Briefly list the changes made to the code:

  1. Created new github action yml
  2. made this new gha check a requirement for pr to be approved

✔️ Verification

Slowly iterated to support setting up db and starting dev server and running tests. Saw working tests and broken tests.

Provide screenshots of any new components, styling changes, or pages.

Description of passing and failing tests.

image image

🏕️ (Optional) Future Work / Notes

takes 2-ish minutes to set up and test

@github-actions
Copy link
Contributor

Terraform Plan 📖 infrastructure/github

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Terraform Plan 📖success

Show Plan
data.infisical_secrets.github_folder: Reading...
data.infisical_secrets.infisical_folder: Reading...
data.infisical_secrets.aws_folder: Reading...
data.infisical_secrets.infisical_folder: Read complete after 0s
data.infisical_secrets.aws_folder: Read complete after 0s
data.infisical_secrets.github_folder: Read complete after 0s
github_repository.branch: Refreshing state... [id=branch]
github_actions_secret.aws_access_key_id: Refreshing state... [id=branch:AWS_ACCESS_KEY_ID]
github_actions_secret.infisical_client_secret: Refreshing state... [id=branch:INFISICAL_CLIENT_SECRET]
github_actions_secret.aws_secret_access_key: Refreshing state... [id=branch:AWS_SECRET_ACCESS_KEY]
github_actions_secret.infisical_client_id: Refreshing state... [id=branch:INFISICAL_CLIENT_ID]
github_branch_default.main: Refreshing state... [id=branch]
github_branch_protection.main: Refreshing state... [id=BPR_kwDOPjZxzc4D-9hQ]

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # github_branch_protection.main will be updated in-place
  ~ resource "github_branch_protection" "main" {
        id                              = "BPR_kwDOPjZxzc4D-9hQ"
        # (10 unchanged attributes hidden)

      ~ required_status_checks {
          ~ contexts = [
              + "lambda-tests",
                # (1 unchanged element hidden)
            ]
            # (1 unchanged attribute hidden)
        }

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Warning: Argument is deprecated

  with github_repository.branch,
  on main.tf line 6, in resource "github_repository" "branch":
   6:   has_downloads   = true

This attribute is no longer in use, but it hasn't been removed yet. It will
be removed in a future version. See
https://github.com/orgs/community/discussions/102145#discussioncomment-8351756

─────────────────────────────────────────────────────────────────────────────

Saved the plan to: tfplan

To perform exactly these actions, run the following command to apply:
    terraform apply "tfplan"

Pushed by: @denniwang, Action: pull_request

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.

Create GitHub Action to Run Lambda Tests

2 participants