diff --git a/filematcher.js b/filematcher.js index c8ed180..64b78ab 100644 --- a/filematcher.js +++ b/filematcher.js @@ -7,20 +7,17 @@ function filematcher(filenames) { ]; const matchesAdminFrontend = ['frontend/admin/']; const matchesWebclientFrontend = ['frontend/webclient/']; - const matchesNewWebclientFrontend = ['frontend/new-webclient/']; const matchesImportFrontend = ['frontend/importer/']; const pythonWillRunForAllButThese = [ ...sharedFrontendFiles, ...matchesAdminFrontend, ...matchesWebclientFrontend, - ...matchesNewWebclientFrontend, ...matchesImportFrontend, ]; matchesAdminFrontend.push(...sharedFrontendFiles); matchesWebclientFrontend.push(...sharedFrontendFiles); - matchesNewWebclientFrontend.push(...sharedFrontendFiles); matchesImportFrontend.push('.nvmrc'); const run_python = !!filenames.find((file) => { @@ -38,11 +35,6 @@ function filematcher(filenames) { return file.startsWith(match); }); }); - const run_new_webclient = !!filenames.find((file) => { - return matchesNewWebclientFrontend.find((match) => { - return file.startsWith(match); - }); - }); const run_importer = !!filenames.find((file) => { return matchesImportFrontend.find((match) => { return file.startsWith(match); @@ -53,7 +45,6 @@ function filematcher(filenames) { python: run_python, admin: run_admin, webclient: run_webclient, - newWebclient: run_new_webclient, importer: run_importer, }; } diff --git a/filematcher.test.js b/filematcher.test.js index a58dc65..07c233f 100644 --- a/filematcher.test.js +++ b/filematcher.test.js @@ -7,7 +7,6 @@ const testCases = [ python: false, admin: false, webclient: false, - newWebclient: false, importer: false, }, }, @@ -17,7 +16,6 @@ const testCases = [ python: false, admin: true, webclient: true, - newWebclient: true, importer: true, }, }, @@ -27,7 +25,6 @@ const testCases = [ python: false, admin: true, webclient: true, - newWebclient: true, importer: false, }, }, @@ -37,7 +34,6 @@ const testCases = [ python: false, admin: true, webclient: true, - newWebclient: true, importer: false, }, }, @@ -47,7 +43,6 @@ const testCases = [ python: false, admin: true, webclient: true, - newWebclient: true, importer: false, }, }, @@ -57,7 +52,6 @@ const testCases = [ python: false, admin: true, webclient: false, - newWebclient: false, importer: false, }, }, @@ -67,19 +61,6 @@ const testCases = [ python: false, admin: false, webclient: true, - newWebclient: false, - importer: false, - }, - }, - { - filenames: [ - 'frontend/new-webclient/someotherfolder/some.other.file.ts', - ], - expected: { - python: false, - admin: false, - webclient: false, - newWebclient: true, importer: false, }, }, @@ -89,7 +70,6 @@ const testCases = [ python: false, admin: false, webclient: false, - newWebclient: false, importer: true, }, }, @@ -99,7 +79,6 @@ const testCases = [ python: true, admin: false, webclient: false, - newWebclient: false, importer: false, }, }, @@ -109,7 +88,6 @@ const testCases = [ python: true, admin: false, webclient: false, - newWebclient: false, importer: false, }, }, @@ -122,7 +100,6 @@ const testCases = [ python: true, admin: true, webclient: false, - newWebclient: false, importer: false, }, }, @@ -135,20 +112,6 @@ const testCases = [ python: true, admin: false, webclient: true, - newWebclient: false, - importer: false, - }, - }, - { - filenames: [ - 'frontend/new-webclient/someotherfolder/some.other.file.ts', - 'lime_webclient/errors.py', - ], - expected: { - python: true, - admin: false, - webclient: false, - newWebclient: true, importer: false, }, }, @@ -158,7 +121,6 @@ const testCases = [ python: true, admin: true, webclient: true, - newWebclient: true, importer: false, }, }, diff --git a/index.js b/index.js index 3b9343a..537f0e1 100644 --- a/index.js +++ b/index.js @@ -38,7 +38,6 @@ async function run() { core.setOutput('run_admin', 'true'); core.setOutput('run_importer', 'true'); core.setOutput('run_webclient', 'true'); - core.setOutput('run_new_webclient', 'true'); return; } @@ -48,13 +47,11 @@ async function run() { console.log('run_admin =', run.admin); console.log('run_importer =', run.importer); console.log('run_webclient =', run.webclient); - console.log('run_new_webclient =', run.newWebClient); core.setOutput('run_python', `${run.python}`); core.setOutput('run_admin', `${run.admin}`); core.setOutput('run_importer', `${run.importer}`); core.setOutput('run_webclient', `${run.webclient}`); - core.setOutput('run_new_webclient', `${run.newWebClient}`); } run();