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

Feat: Script tests to templates #847

Merged
merged 24 commits into from
May 24, 2022
Merged

Conversation

cbrzn
Copy link
Contributor

@cbrzn cbrzn commented May 10, 2022

This PR aims to add a test script for templates packages, making sure that they are not broken when a new release happens.

To achieve this, the following steps are being done:

  • Iterate over all the folders inside of templates package, except for scripts and node_modules
  • If the folder contains a package.json file, we read it and check if has a build script, if it does, the command yarn && yarn build && yarn test is executed, otherwise, it's only yarn && yarn test
  • If the package.json does not have a test script, an error is thrown. This is to make sure that all the templates have tests
  • If any command fails, an error is returned

@cbrzn cbrzn requested a review from dOrgJelli as a code owner May 10, 2022 12:32
.github/workflows/js-ci.yaml Outdated Show resolved Hide resolved
packages/templates/api/assemblyscript/package.json Outdated Show resolved Hide resolved
dOrgJelli
dOrgJelli previously approved these changes May 11, 2022
packages/templates/api/assemblyscript/package.json Outdated Show resolved Hide resolved
@Niraj-Kamdar Niraj-Kamdar changed the base branch from prealpha to prealpha-dev May 13, 2022 05:22
@dOrgJelli dOrgJelli merged commit d0e8661 into prealpha-dev May 24, 2022
@dOrgJelli dOrgJelli deleted the feat/script-tests-to-templates branch February 2, 2023 15:41
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.

2 participants