Verify every feature on CI
See original GitHub issueThis workflow should be replaced by a simple node script that ensures:
- only .tsx and .css files exist in
/features/
getFeaturesMeta
matches thetsx
files in/features/
exactly and is full- each file appears in
refined-github.tsx
Pseudo-code:
const featuresFromReadme = getFeaturesMeta()
for (const file of featuresDirectory) {
if (file.extension === 'css' || file === 'index.tsx') {
continue;
}
if (!featuresFromReadme[file]) {
throw error
}
if (featuresFromReadme[file].description.length < 20) {
throw error too short
}
if (refinedGithubTex.includes(`import "./features/${file.name}"`) {
throw error;
}
}
Ideally written in a way that it can report multiple errors, for example by replacing the throw
with console.error
+ a variable that will mark the run as failed.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Validate GitLab CI/CD configuration
Use the CI Lint tool to check the validity of GitLab CI/CD configuration. You can validate the syntax from a .gitlab-ci.yml file or...
Read more >Strategies for verifying feature pacts - Pactflow Documentation
When a new "feature" pact is created, there are a few ways you could bring that pact into the verification process so that...
Read more >CI/CD pipelines explained: Everything you need to know
Staff must carefully construct tests and test cases to validate the features and functionality of each new build as the builds, the project...
Read more >Create Assets under CI Verfication - ServiceNow Community
With Enforce CI Verification on, is there a way to run the Create Asset process in bulk instead of opening each CI record...
Read more >Creating CI tests with the Checks API - GitHub Docs
Checks API overview · Whenever someone pushes code to the repository, GitHub sends the check_suite event with an action of requested to all...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure! It can be a script in the
build
folder and it can be called by theci.yml
workflow as its own job, via something likenode build/verify-features.js
Ohk thanks