Unverified Commit 70ea3086 authored by Licho's avatar Licho Committed by GitHub

feat: github unused checkstyle (#1459)

* feat: github unused checkstyle Signed-off-by: 's avatarLicho <chinabhsun@gmail.com> * feat: speed up build npm and increate thread when build mvn Signed-off-by: 's avatarLicho <chinabhsun@gmail.com> * feat: npm check changed Signed-off-by: 's avatarLicho <chinabhsun@gmail.com> * fix Signed-off-by: 's avatarLicho <chinabhsun@gmail.com> * refactor: remote unused code Signed-off-by: 's avatarLicho <chinabhsun@gmail.com> * refactor: remove unused code Signed-off-by: 's avatarLicho <chinabhsun@gmail.com> * refactor: remove unused code Signed-off-by: 's avatarLicho <chinabhsun@gmail.com> Signed-off-by: 's avatarLicho <chinabhsun@gmail.com>
parent 16887033
...@@ -38,15 +38,24 @@ jobs: ...@@ -38,15 +38,24 @@ jobs:
MAVEN_OPTS: -Xmx2G -Xms2G MAVEN_OPTS: -Xmx2G -Xms2G
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
frontend:
- 'dlink-web/**'
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
if: steps.filter.outputs.frontend == 'true'
with: with:
node-version: 16 node-version: 16
- name: Get npm cache directory - name: Get npm cache directory
id: npm-cache-dir id: npm-cache-dir
if: steps.filter.outputs.frontend == 'true'
run: | run: |
echo "::set-output name=dir::$(npm config get cache)" echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v3 - uses: actions/cache@v3
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true' id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
if: steps.filter.outputs.frontend == 'true'
with: with:
path: | path: |
${{ steps.npm-cache-dir.outputs.dir }} ${{ steps.npm-cache-dir.outputs.dir }}
...@@ -55,8 +64,10 @@ jobs: ...@@ -55,8 +64,10 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-node- ${{ runner.os }}-node-
- name: Install Dependencies - name: Install Dependencies
run: cd dlink-web && npm install --legacy-peer-deps if: steps.filter.outputs.frontend == 'true'
run: cd dlink-web && npm install --prefer-offline --no-audit --progress=false --legacy-peer-deps
- name: Npm Web Build - name: Npm Web Build
if: steps.filter.outputs.frontend == 'true'
run: cd dlink-web && npm run build run: cd dlink-web && npm run build
build_jdk: build_jdk:
name: Build_JDK name: Build_JDK
...@@ -101,12 +112,13 @@ jobs: ...@@ -101,12 +112,13 @@ jobs:
${{ runner.os }}-${{ matrix.flink }}-maven- ${{ runner.os }}-${{ matrix.flink }}-maven-
- name: Check Style - name: Check Style
run: | run: |
./mvnw -T 2C -B --no-snapshot-updates clean checkstyle:check ./mvnw -T 4C -B --no-snapshot-updates clean spotless:check
- name: Build and Package - name: Build and Package
run: | run: |
./mvnw -B clean install \ ./mvnw -B clean install \
-Dmaven.test.skip=true \ -Dmaven.test.skip=true \
-Dcheckstyle.skip=true \ -Dcheckstyle.skip=true \
-Dspotless.check.skip=true \
-P prod,scala-2.12,flink-${{ matrix.flink }},maven-central \ -P prod,scala-2.12,flink-${{ matrix.flink }},maven-central \
--no-snapshot-updates --no-snapshot-updates
......
...@@ -1002,7 +1002,6 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen ...@@ -1002,7 +1002,6 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
&& !status.equals(jobInfoDetail.getInstance().getStatus())) { && !status.equals(jobInfoDetail.getInstance().getStatus())) {
jobStatusChanged = true; jobStatusChanged = true;
jobInfoDetail.getInstance().setFinishTime(LocalDateTime.now()); jobInfoDetail.getInstance().setFinishTime(LocalDateTime.now());
// handleJobDone(jobInfoDetail.getInstance());
} }
if (isCoercive) { if (isCoercive) {
DaemonFactory.addTask(DaemonTaskConfig.build(FlinkJobTask.TYPE, jobInfoDetail.getInstance().getId())); DaemonFactory.addTask(DaemonTaskConfig.build(FlinkJobTask.TYPE, jobInfoDetail.getInstance().getId()));
......
...@@ -96,9 +96,6 @@ const FlinkSqlEditor = (props:any) => { ...@@ -96,9 +96,6 @@ const FlinkSqlEditor = (props:any) => {
const onChangeHandle = (val: string, event: any) => { const onChangeHandle = (val: string, event: any) => {
setCode(val); setCode(val);
onChange(val,event); onChange(val,event);
/*let newSqlMetaData = parseSqlMetaData(val);
setMetaData(newSqlMetaData);
props.saveSqlMetaData(newSqlMetaData,tabsKey);*/
props.saveSql(val); props.saveSql(val);
}; };
...@@ -112,8 +109,6 @@ const FlinkSqlEditor = (props:any) => { ...@@ -112,8 +109,6 @@ const FlinkSqlEditor = (props:any) => {
suggestions:buildSuggestions(), suggestions:buildSuggestions(),
}; };
}, },
// quickSuggestions: false,
// triggerCharacters: ['$', '.', '='],
}); });
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment