Open soumyart opened 1 year ago
@soumyart did you try adding the *.js files to the test task inputs?
E.g:
module.exports = {
pipeline: {
build: ['^build'],
lint: ['^build'],
test: { dependsOn: ['^build'], inputs: ['**/*.js', '*.json', '*.yml'] }, // Put the inputs here,
},
ignore: ['*.md', '.vscode/**'],
cacheOptions: {
// These are the subset of files in the package directories that will be saved into the cache
outputGlob: ['dist/**/*', '!node_modules'],
// These are relative to the git root, and affects the hash of the cache
// Any of these file changes will invalidate cache
environmentGlob: [], // Probably should avoid adding things in here because any changes here would invalidate all caches
},
npmClient: 'yarn',
};
Describe the bug For the very first time when I run the test command lage is triggering the test scripts. But when I add/update test file without change in any source file lage is not triggering the test case and return the cached state.
I have to manually pass
--no-cache
options which is a pain as it triggers script in all the packages.Below is my lage config:
To Reproduce Steps to reproduce the behavior:
lage test
lage test
Expected behavior Lage should run the test case of the updated package but it return the cached result
Environment/Troubleshooting