question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Verify every feature on CI

See original GitHub issue

This workflow should be replaced by a simple node script that ensures:

  • only .tsx and .css files exist in /features/
  • getFeaturesMeta matches the tsx 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fregantecommented, Aug 22, 2021

Sure! It can be a script in the build folder and it can be called by the ci.yml workflow as its own job, via something like node build/verify-features.js

0reactions
gamemaker1commented, Aug 22, 2021

Ohk thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found