Browse Source

repo: remove unused file

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 9 months ago
parent
commit
be3219f254
1 changed files with 0 additions and 22 deletions
  1. 0 22
      checkInsight.js

+ 0 - 22
checkInsight.js

@@ -1,22 +0,0 @@
-const axios = require('axios');
-const core = require('@actions/core');
-
-const BASE_URL = process.env.INSIGHT_URL;
-
-const check = async () => {
-  const clientRes = await axios.get(`${BASE_URL}/connect`);
-  const serverRes = await axios.get(`${BASE_URL}/api/v1/healthy`);
-  if (serverRes.data.statusCode === 200) {
-    console.log('---- Server OK -----');
-  } else {
-    core.setFailed('---- Server has some error ----');
-  }
-
-  if (clientRes.data.includes('<html')) {
-    console.log('---- Client OK -----');
-  } else {
-    core.setFailed('---- Client has some error ----');
-  }
-};
-
-check();