From d8f91aeabcc7d4181a4ecb7880606f1ea82a18f9 Mon Sep 17 00:00:00 2001 From: rajkharvar Date: Mon, 21 Oct 2024 18:11:39 +0530 Subject: [PATCH] chore: update ci.yaml to use github hosted actions and added logs for debugging --- .github/workflows/ci.yml | 2 +- test/collections.js | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1f5e9c..f6c370e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: jobs: tests: - runs-on: self-hosted + runs-on: ubuntu-latest steps: - name: Checkout code diff --git a/test/collections.js b/test/collections.js index 087aa56..04d7812 100644 --- a/test/collections.js +++ b/test/collections.js @@ -111,11 +111,16 @@ describe("Collections test", () => { `Testnet Job(${name}) url should send OK response` ); } else if (isUrlOrJson(url) === "URL") { - const res = await chai.request(url).get("").timeout(10000); - expect(res.status).to.be.equal( - 200, - `Testnet Job(${name}) url should send OK response` - ); + try { + const res = await chai.request(url).get("").timeout(10000); + expect(res.status).to.be.equal( + 200, + `Testnet Job(${name}) url should send OK response` + ); + } catch (error) { + console.log(`Error occured for ${name}`); + console.log(error); + } } else { console.error("Invalid URL:", url); }