Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: update CONTRIBUTION docs to explain both tests, and update CI for both tests #384

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

Open
DevelopmentCats wants to merge 10 commits into main
base: main
Choose a base branch
Loading
from cat/contrib-docs-testing

Conversation

Copy link
Contributor

@DevelopmentCats DevelopmentCats commented Aug 25, 2025

Closes #383

Description

  • Update CONTRIBUTION.md to elaborate on ts and tf tests
  • Add ./scripts/terraform_test_all.sh to CI for ts tests

Type of Change

  • New module
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun run fmt)
  • Changes tested locally

@Copilot Copilot AI review requested due to automatic review settings August 25, 2025 16:03
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the documentation and CI pipeline to clarify that the repository supports both TypeScript and Terraform testing approaches. The changes align the documentation with the actual testing practices and ensure both test types run in CI.

  • Update CONTRIBUTING.md to explain both TypeScript tests (bun test) and Terraform tests (terraform test)
  • Add Terraform test execution to the CI workflow
  • Clarify testing requirements for new vs existing modules

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
CONTRIBUTING.md Updated documentation to explain dual testing approaches and provide clear guidance for both TypeScript and Terraform tests
.github/workflows/ci.yaml Added Terraform test execution step to ensure both test types run in CI

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Atif Ali <atif@coder.com>
Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

left a few suggestions. I think we need to have both simultaneously.

TypeScript tests can be skipped if the module does not run any scripts.

Copy link
Contributor Author

left a few suggestions. I think we need to have both simultaneously.

TypeScript tests can be skipped if the module does not run any scripts.

Ahh I okay I'm seeing the whole picture better now. I'll commit your other change and give it one more look over before it's merged

matifali reacted with thumbs up emoji

Copy link
Member

@matifali matifali left a comment

Choose a reason for hiding this comment

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

Can we update the script in package.json to run all tests when someone run bun test

Copy link
Contributor Author

Can we update the script in package.json to run all tests when someone run bun test

Doesn't the package.json currently do this already?

 "name": "registry",
 "scripts": {
 "fmt": "bun x prettier --write . && terraform fmt -recursive -diff",
 "fmt:ci": "bun x prettier --check . && terraform fmt -check -recursive -diff",
 "terraform-validate": "./scripts/terraform_validate.sh",
 "test": "./scripts/terraform_test_all.sh",
 "update-version": "./update-version.sh"
 },

Copy link
Contributor Author

I think we just need to omit the examples from the terraform_test_all.sh script. I will do this tomorrow morning and get this finished up.

Copy link
Member

@Parkreiner Parkreiner left a comment

Choose a reason for hiding this comment

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

Current changes look good! Just wasn't sure if there was some extra context we could add

@matifali matifali changed the title (削除) feat: update CONTRIBUTION docs to explain both tests, and update CI for both tests (削除ここまで) (追記) chore: update CONTRIBUTION docs to explain both tests, and update CI for both tests (追記ここまで) Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

Copilot code review Copilot Copilot left review comments

@Parkreiner Parkreiner Parkreiner approved these changes

@matifali matifali matifali left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Update Contribution Docs for TS and TF tests

AltStyle によって変換されたページ (->オリジナル) /