Skip to content

Commit

Permalink
Just for test
Browse files Browse the repository at this point in the history
  • Loading branch information
vtm9 committed Jun 8, 2024
1 parent 2909a36 commit 03edfba
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ jobs:
env:
MIX_ENV: test

- name: Mix format
run: mix format --check-formatted
working-directory: ./services/app
env:
MIX_ENV: test
# - name: Mix format
# run: mix format --check-formatted
# working-directory: ./services/app
# env:
# MIX_ENV: test

- name: Mix credo
run: mix credo
working-directory: ./services/app
env:
MIX_ENV: test
# - name: Mix credo
# run: mix credo
# working-directory: ./services/app
# env:
# MIX_ENV: test

- name: Get yarn cache
id: yarn-cache
Expand All @@ -75,13 +75,13 @@ jobs:
run: yarn install --froze-lockfile
working-directory: ./services/app/apps/codebattle

- name: Eslint
run: yarn lint
working-directory: ./services/app/apps/codebattle
# - name: Eslint
# run: yarn lint
# working-directory: ./services/app/apps/codebattle

- name: Run jest
run: yarn test
working-directory: ./services/app/apps/codebattle
# - name: Run jest
# run: yarn test
# working-directory: ./services/app/apps/codebattle

- name: Compile
run: mix compile
Expand All @@ -95,10 +95,10 @@ jobs:
env:
MIX_ENV: test

- name: Mix tests
run: make test
env:
MIX_ENV: test
# - name: Mix tests
# run: make test
# env:
# MIX_ENV: test

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,19 +364,19 @@ class Editor extends PureComponent {
}

// Custom Paste Event
if ((e.ctrlKey || e.metaKey) && e.keyCode === monaco.KeyCode.KEY_V) {
if (editorClipboard.startsWith('___CUSTOM_COPIED_TEXT___')) {
const customText = editorClipboard.replace('___CUSTOM_COPIED_TEXT___', '');
editor.executeEdits('custom-paste', [
{
range: editor.getSelection(),
text: customText,
forceMoveMarkers: true,
},
]);
}
e.preventDefault();
}
// if ((e.ctrlKey || e.metaKey) && e.keyCode === monaco.KeyCode.KEY_V) {
// if (editorClipboard.startsWith('___CUSTOM_COPIED_TEXT___')) {
// const customText = editorClipboard.replace('___CUSTOM_COPIED_TEXT___', '');
// editor.executeEdits('custom-paste', [
// {
// range: editor.getSelection(),
// text: customText,
// forceMoveMarkers: true,
// },
// ]);
// }
// e.preventDefault();
// }
});

this.editor.onDidChangeCursorSelection(this.handleChangeCursorSelection);
Expand Down

0 comments on commit 03edfba

Please sign in to comment.