Skip to content

Commit

Permalink
fix: ci errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tbmc committed May 28, 2024
1 parent b29b4d2 commit 5e7f175
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: lint
working-directory: ./websocketServer
run: |
prettier --check src test
yarn prettier-check
yarn lint
build_svelte:
Expand All @@ -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
Expand Down
14 changes: 9 additions & 5 deletions svelte/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
1 change: 1 addition & 0 deletions websocketServer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5e7f175

Please sign in to comment.