Skip to content

Commit

Permalink
chore: update ci.yaml to use github hosted actions and added logs for…
Browse files Browse the repository at this point in the history
… debugging
  • Loading branch information
rajkharvar committed Oct 21, 2024
1 parent be0f3ce commit d8f91ae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
tests:
runs-on: self-hosted
runs-on: ubuntu-latest

steps:
- name: Checkout code
Expand Down
15 changes: 10 additions & 5 deletions test/collections.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d8f91ae

Please sign in to comment.