firecrawl/.github/archive/js-sdk.yml

58 lines
1.9 KiB
YAML
Raw Normal View History

2024-05-28 02:54:09 +08:00
name: Run JavaScript SDK E2E Tests
2024-05-28 01:14:00 +08:00
2024-06-07 02:46:40 +08:00
on: []
2024-05-28 01:14:00 +08:00
env:
2024-05-28 01:34:39 +08:00
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
BULL_AUTH_KEY: ${{ secrets.BULL_AUTH_KEY }}
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
HOST: ${{ secrets.HOST }}
LLAMAPARSE_API_KEY: ${{ secrets.LLAMAPARSE_API_KEY }}
LOGTAIL_KEY: ${{ secrets.LOGTAIL_KEY }}
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
POSTHOG_HOST: ${{ secrets.POSTHOG_HOST }}
NUM_WORKERS_PER_QUEUE: ${{ secrets.NUM_WORKERS_PER_QUEUE }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
PLAYWRIGHT_MICROSERVICE_URL: ${{ secrets.PLAYWRIGHT_MICROSERVICE_URL }}
PORT: ${{ secrets.PORT }}
REDIS_URL: ${{ secrets.REDIS_URL }}
SCRAPING_BEE_API_KEY: ${{ secrets.SCRAPING_BEE_API_KEY }}
SUPABASE_ANON_TOKEN: ${{ secrets.SUPABASE_ANON_TOKEN }}
SUPABASE_SERVICE_TOKEN: ${{ secrets.SUPABASE_SERVICE_TOKEN }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
2024-05-28 01:14:00 +08:00
TEST_API_KEY: ${{ secrets.TEST_API_KEY }}
2024-05-28 01:34:39 +08:00
HYPERDX_API_KEY: ${{ secrets.HYPERDX_API_KEY }}
HDX_NODE_BETA_MODE: 1
2024-05-28 01:36:32 +08:00
2024-05-28 01:14:00 +08:00
jobs:
build:
runs-on: ubuntu-latest
2024-05-28 01:36:32 +08:00
services:
redis:
image: redis
ports:
- 6379:6379
2024-05-28 01:14:00 +08:00
2024-05-28 01:32:34 +08:00
steps:
2024-05-28 01:36:32 +08:00
- uses: actions/checkout@v3
2024-05-28 01:32:34 +08:00
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies for API
run: pnpm install
working-directory: ./apps/api
- name: Start the application
run: npm start &
working-directory: ./apps/api
- name: Start workers
run: npm run workers &
working-directory: ./apps/api
2024-05-28 03:01:48 +08:00
- name: Install dependencies for JavaScript SDK
run: pnpm install
working-directory: ./apps/js-sdk/firecrawl
2024-05-28 02:54:09 +08:00
- name: Run E2E tests for JavaScript SDK
2024-05-28 02:55:48 +08:00
run: npm run test
2024-05-28 02:54:09 +08:00
working-directory: ./apps/js-sdk/firecrawl