From 5e7f1755d5958ea439113f2b94de61aae1442adf Mon Sep 17 00:00:00 2001 From: Thibault Date: Tue, 28 May 2024 12:15:08 +0200 Subject: [PATCH] fix: ci errors --- .github/workflows/build_test.yml | 5 ++++- svelte/src/routes/+page.svelte | 14 +++++++++----- websocketServer/package.json | 1 + 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 422c4c6..42cc771 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -26,7 +26,7 @@ jobs: - name: lint working-directory: ./websocketServer run: | - prettier --check src test + yarn prettier-check yarn lint build_svelte: @@ -43,6 +43,9 @@ jobs: - name: yarn install working-directory: ./svelte run: yarn install --frozen-lockfile + - name: svelte-check + working-directory: ./svelte + run: yarn check - name: lint working-directory: ./svelte run: yarn lint diff --git a/svelte/src/routes/+page.svelte b/svelte/src/routes/+page.svelte index a918435..180ce1a 100644 --- a/svelte/src/routes/+page.svelte +++ b/svelte/src/routes/+page.svelte @@ -19,11 +19,15 @@ let sendDataFn: null | ((data: string) => void) = null; const onExecuteClick = () => { - sendDataFn = connectWebsocket(currentCodeText, (data: string) => { - outputText.value += data; - }, () => { - outputText.value += '\n\nProgram ended.\n\n'; - }); + sendDataFn = connectWebsocket( + currentCodeText, + (data: string) => { + outputText.value += data; + }, + () => { + outputText.value += '\n\nProgram ended.\n\n'; + } + ); }; const onScriptChange = (value: string) => { diff --git a/websocketServer/package.json b/websocketServer/package.json index fcd2297..4f2ac27 100644 --- a/websocketServer/package.json +++ b/websocketServer/package.json @@ -28,6 +28,7 @@ "vitest": "^0.28.3" }, "scripts": { + "prettier-check": "prettier --check src test", "lint": "eslint src test", "lint:fix": "eslint src test --fix", "prettier": "prettier --write src test",