Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

feat: remove support for new-webclient #71

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions filematcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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);
Expand All @@ -53,7 +45,6 @@ function filematcher(filenames) {
python: run_python,
admin: run_admin,
webclient: run_webclient,
newWebclient: run_new_webclient,
importer: run_importer,
};
}
Expand Down
38 changes: 0 additions & 38 deletions filematcher.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const testCases = [
python: false,
admin: false,
webclient: false,
newWebclient: false,
importer: false,
},
},
Expand All @@ -17,7 +16,6 @@ const testCases = [
python: false,
admin: true,
webclient: true,
newWebclient: true,
importer: true,
},
},
Expand All @@ -27,7 +25,6 @@ const testCases = [
python: false,
admin: true,
webclient: true,
newWebclient: true,
importer: false,
},
},
Expand All @@ -37,7 +34,6 @@ const testCases = [
python: false,
admin: true,
webclient: true,
newWebclient: true,
importer: false,
},
},
Expand All @@ -47,7 +43,6 @@ const testCases = [
python: false,
admin: true,
webclient: true,
newWebclient: true,
importer: false,
},
},
Expand All @@ -57,7 +52,6 @@ const testCases = [
python: false,
admin: true,
webclient: false,
newWebclient: false,
importer: false,
},
},
Expand All @@ -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,
},
},
Expand All @@ -89,7 +70,6 @@ const testCases = [
python: false,
admin: false,
webclient: false,
newWebclient: false,
importer: true,
},
},
Expand All @@ -99,7 +79,6 @@ const testCases = [
python: true,
admin: false,
webclient: false,
newWebclient: false,
importer: false,
},
},
Expand All @@ -109,7 +88,6 @@ const testCases = [
python: true,
admin: false,
webclient: false,
newWebclient: false,
importer: false,
},
},
Expand All @@ -122,7 +100,6 @@ const testCases = [
python: true,
admin: true,
webclient: false,
newWebclient: false,
importer: false,
},
},
Expand All @@ -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,
},
},
Expand All @@ -158,7 +121,6 @@ const testCases = [
python: true,
admin: true,
webclient: true,
newWebclient: true,
importer: false,
},
},
Expand Down
3 changes: 0 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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();