Movatterモバイル変換


[0]ホーム

URL:


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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
DevelopmentCats wants to merge14 commits intomain
base:main
Choose a base branch
Loading
fromcat/contrib-docs-testing

Conversation

DevelopmentCats
Copy link
Contributor

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

@CopilotCopilotAI review requested due to automatic review settingsAugust 25, 2025 16:03
Copy link
Contributor

@CopilotCopilotAI 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.

FileDescription
CONTRIBUTING.mdUpdated documentation to explain dual testing approaches and provide clear guidance for both TypeScript and Terraform tests
.github/workflows/ci.yamlAdded Terraform test execution step to ensure both test types run in CI

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

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

@matifalimatifali 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.

@DevelopmentCats
Copy link
ContributorAuthor

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

@matifalimatifali 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 inpackage.json to run all tests when someone runbun test

matifali
matifali previously approved these changesAug 26, 2025
@DevelopmentCats
Copy link
ContributorAuthor

Can we update the script inpackage.json to run all tests when someone runbun 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"  },
matifali reacted with thumbs up emoji

@DevelopmentCats
Copy link
ContributorAuthor

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

@ParkreinerParkreiner 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

@matifalimatifali changed the titlefeat: update CONTRIBUTION docs to explain both tests, and update CI for both testschore: update CONTRIBUTION docs to explain both tests, and update CI for both testsAug 27, 2025
@DevelopmentCats
Copy link
ContributorAuthor

@matifali@Parkreiner If you can approve this again I resolved the failing tf tests so now this is good for all new/existing PR's

Copy link
Member

@ParkreinerParkreiner left a comment

Choose a reason for hiding this comment

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

Looks good to me. Just had one small nit

type=string
description="The path to logMODULE_NAME to."
default="/tmp/MODULE_NAME.log"
description="The path to logmodule-name to."
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is a huge deal, but I could see it being a slight source of confusion: is there a reason why we usemodule-name for the descriptions, but still usemodule_name for the resource names?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@matifalimatifalimatifali approved these changes

@ParkreinerParkreinerParkreiner approved these changes

At least 1 approving review is required to merge this pull request.

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
3 participants
@DevelopmentCats@matifali@Parkreiner

[8]ページ先頭

©2009-2025 Movatter.jp