mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-11 18:59:01 +08:00
feat(github/ci): connect to tailscale (FIR-748) (#1112)
* feat(github/ci): connect to tailscale * fix(tests/snips): adjust timeouts
This commit is contained in:
parent
aaa16ee388
commit
86f05a07ba
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -40,6 +40,12 @@ jobs:
|
||||
- 6379:6379
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Tailscale
|
||||
uses: tailscale/github-action@v3
|
||||
with:
|
||||
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
|
||||
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
|
||||
tags: tag:ci
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
|
@ -27,7 +27,7 @@ describe("Map tests", () => {
|
||||
});
|
||||
|
||||
expectMapToSucceed(response);
|
||||
});
|
||||
}, 10000);
|
||||
|
||||
it("times out properly", async () => {
|
||||
const response = await map({
|
||||
@ -38,5 +38,5 @@ describe("Map tests", () => {
|
||||
expect(response.statusCode).toBe(408);
|
||||
expect(response.body.success).toBe(false);
|
||||
expect(response.body.error).toBe("Request timed out");
|
||||
});
|
||||
}, 10000);
|
||||
});
|
||||
|
@ -64,7 +64,7 @@ describe("Scrape tests", () => {
|
||||
});
|
||||
|
||||
expectScrapeToSucceed(response);
|
||||
});
|
||||
}, 10000);
|
||||
|
||||
it.concurrent("works with country US", async () => {
|
||||
const response = await scrape({
|
||||
@ -74,6 +74,6 @@ describe("Scrape tests", () => {
|
||||
|
||||
expectScrapeToSucceed(response);
|
||||
expect(response.body.data.markdown).toContain("| Country | United States |");
|
||||
});
|
||||
}, 10000);
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user