mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
74fc1414d7
* ⚡️test setup * ⚡️fix 'testData' implicitly has an 'any' type. * ✅ test github action file binary data reading * ✅ checking for output binary equality * ✅ writing files to different formats * ✅ reading spreadsheet with different options * ⚡️improve workflow file path replacement * 🐛 fixing string.at() not supported in node 14. * 🐛 trying to fix github action test error * ⚡ fix for empty binary * ⚡ switch for binary test * ⚡️test helpers now return/compare json and binary (if not empty)) * ⚡ removed commented console log --------- Co-authored-by: Michael Kret <michael.k@radency.com>
253 lines
4.6 KiB
JSON
253 lines
4.6 KiB
JSON
{
|
|
"meta": {
|
|
"instanceId": "104a4d08d8897b8bdeb38aaca515021075e0bd8544c983c2bb8c86e6a8e6081c"
|
|
},
|
|
"nodes": [
|
|
{
|
|
"parameters": {},
|
|
"id": "087277cc-297d-4912-bd11-86626eff2d71",
|
|
"name": "When clicking \"Execute Workflow\"",
|
|
"type": "n8n-nodes-base.manualTrigger",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
620,
|
|
640
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {}
|
|
},
|
|
"id": "f55bc21c-c9a8-43af-bbc8-e4bdd30f0ce9",
|
|
"name": "Read From File",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1260,
|
|
640
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"filePath": "C:\\Users\\spech\\Documents\\GitHub\\n8n-master\\packages\\nodes-base\\nodes\\SpreadsheetFile\\test\\spreadsheet.csv"
|
|
},
|
|
"id": "d7620053-eb3d-43dd-b2cd-d60d9a08a9cc",
|
|
"name": "Read Binary File",
|
|
"type": "n8n-nodes-base.readBinaryFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
840,
|
|
640
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "toFile",
|
|
"fileFormat": "csv",
|
|
"options": {}
|
|
},
|
|
"id": "21bc49fe-1e6b-46d6-a04d-cb474d138e02",
|
|
"name": "Write To File CSV",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1580,
|
|
280
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "toFile",
|
|
"fileFormat": "html",
|
|
"options": {}
|
|
},
|
|
"id": "a4c2c717-5a9d-4fd6-8450-6bb78e233c05",
|
|
"name": "Write To File HTML",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1580,
|
|
460
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "toFile",
|
|
"fileFormat": "ods",
|
|
"options": {}
|
|
},
|
|
"id": "58e5a423-0477-44df-a505-6b8a40dbf275",
|
|
"name": "Write To File ODS",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1580,
|
|
640
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "toFile",
|
|
"fileFormat": "rtf",
|
|
"options": {}
|
|
},
|
|
"id": "3ae6e9c5-bc0a-44e4-959e-cfc572f4179f",
|
|
"name": "Write To File RTF",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1580,
|
|
820
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"operation": "toFile",
|
|
"options": {}
|
|
},
|
|
"id": "7e6db847-d24c-4094-907d-92ffec626f68",
|
|
"name": "Write To File XLS",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1580,
|
|
1020
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {
|
|
"range": "A2:B3"
|
|
}
|
|
},
|
|
"id": "48934f0d-ac10-4862-ae0c-2ea591b111e3",
|
|
"name": "Read From File Range",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1060,
|
|
520
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {
|
|
"headerRow": false
|
|
}
|
|
},
|
|
"id": "dea6f3f6-f2fb-472e-97b2-8a0c0a36bc4d",
|
|
"name": "Read From File no Header Row",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1060,
|
|
320
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {
|
|
"rawData": true
|
|
}
|
|
},
|
|
"id": "38ed33fc-6906-4b09-8376-937ef3ca99be",
|
|
"name": "Read From File Raw Data",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1060,
|
|
740
|
|
]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"options": {
|
|
"readAsString": true
|
|
}
|
|
},
|
|
"id": "ffe09dc8-9b7a-4baf-bd03-bd65bbce2590",
|
|
"name": "Read From File Read as String",
|
|
"type": "n8n-nodes-base.spreadsheetFile",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
1060,
|
|
940
|
|
]
|
|
}
|
|
],
|
|
"connections": {
|
|
"When clicking \"Execute Workflow\"": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Read Binary File",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Read From File": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Write To File CSV",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Write To File HTML",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Write To File ODS",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Write To File RTF",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Write To File XLS",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Read Binary File": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Read From File",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Read From File Range",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Read From File no Header Row",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Read From File Raw Data",
|
|
"type": "main",
|
|
"index": 0
|
|
},
|
|
{
|
|
"node": "Read From File Read as String",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
} |