Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Update fly.yml

Nicolasd21a797ef92e
diff --git a/.github/workflows/fly.yml b/.github/workflows/fly.yml
index 7b45921a0..31a09f088 100644
--- a/.github/workflows/fly.yml
+++ b/.github/workflows/fly.yml
@@ -32,219 +32,6 @@ env:
ENV: ${{ secrets.ENV }}
jobs:
- pre-deploy-e2e-tests:
- name: Pre-deploy checks
- runs-on: ubuntu-latest
- services:
- redis:
- image: redis
- ports:
- - 6379:6379
- steps:
- - uses: actions/checkout@v3
- - 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
- run: pnpm install
- working-directory: ./apps/api
- - name: Start the application
- run: npm start &
- working-directory: ./apps/api
- id: start_app
- - name: Start workers
- run: npm run workers &
- working-directory: ./apps/api
- id: start_workers
- - name: Wait for the application to be ready
- run: |
- sleep 10
- - name: Run E2E tests
- run: |
- npm run test:prod
- working-directory: ./apps/api
-
- pre-deploy-test-suite:
- name: Test Suite
- needs: pre-deploy-e2e-tests
- runs-on: ubuntu-latest
- services:
- redis:
- image: redis
- ports:
- - 6379:6379
- steps:
- - uses: actions/checkout@v3
- - 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
- run: pnpm install
- working-directory: ./apps/api
- - name: Start the application
- run: npm start &
- working-directory: ./apps/api
- id: start_app
- - name: Start workers
- run: npm run workers &
- working-directory: ./apps/api
- id: start_workers
- - name: Install dependencies
- run: pnpm install
- working-directory: ./apps/test-suite
- - name: Run E2E tests
- run: |
- npm run test:suite
- working-directory: ./apps/test-suite
-
- python-sdk-tests:
- name: Python SDK Tests
- needs: pre-deploy-e2e-tests
- runs-on: ubuntu-latest
- services:
- redis:
- image: redis
- ports:
- - 6379:6379
- steps:
- - uses: actions/checkout@v3
- - name: Set up Python
- uses: actions/setup-python@v4
- with:
- python-version: '3.x'
- - name: Install pnpm
- run: npm install -g pnpm
- - name: Install dependencies
- run: pnpm install
- working-directory: ./apps/api
- - name: Start the application
- run: npm start &
- working-directory: ./apps/api
- id: start_app
- - name: Start workers
- run: npm run workers &
- working-directory: ./apps/api
- id: start_workers
- - name: Install Python dependencies
- run: |
- python -m pip install --upgrade pip
- pip install -r requirements.txt
- working-directory: ./apps/python-sdk
- - name: Run E2E tests for Python SDK
- run: |
- pytest firecrawl/__tests__/v1/e2e_withAuth/test.py
- working-directory: ./apps/python-sdk
-
- js-sdk-tests:
- name: JavaScript SDK Tests
- needs: pre-deploy-e2e-tests
- runs-on: ubuntu-latest
- services:
- redis:
- image: redis
- ports:
- - 6379:6379
- steps:
- - uses: actions/checkout@v3
- - 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
- run: pnpm install
- working-directory: ./apps/api
- - name: Start the application
- run: npm start &
- working-directory: ./apps/api
- id: start_app
- - name: Start workers
- run: npm run workers &
- working-directory: ./apps/api
- id: start_workers
- - name: Install dependencies for JavaScript SDK
- run: pnpm install
- working-directory: ./apps/js-sdk/firecrawl
- - name: Run E2E tests for JavaScript SDK
- run: npm run test
- working-directory: ./apps/js-sdk/firecrawl
-
- go-sdk-tests:
- name: Go SDK Tests
- needs: pre-deploy-e2e-tests
- runs-on: ubuntu-latest
- services:
- redis:
- image: redis
- ports:
- - 6379:6379
- steps:
- - uses: actions/checkout@v3
- - name: Set up Go
- uses: actions/setup-go@v5
- with:
- go-version-file: "go.mod"
- - name: Install pnpm
- run: npm install -g pnpm
- - name: Install dependencies
- run: pnpm install
- working-directory: ./apps/api
- - name: Start the application
- run: npm start &
- working-directory: ./apps/api
- id: start_app
- - name: Start workers
- run: npm run workers &
- working-directory: ./apps/api
- id: start_workers
- - name: Install dependencies for Go SDK
- run: go mod tidy
- working-directory: ./apps/go-sdk
- - name: Run tests for Go SDK
- run: go test -v ./... -timeout 180s
- working-directory: ./apps/go-sdk/firecrawl
-
- rust-sdk-tests:
- name: Rust SDK Tests
- needs: pre-deploy-e2e-tests
- runs-on: ubuntu-latest
- services:
- redis:
- image: redis
- ports:
- - 6379:6379
- steps:
- - name: Checkout repository
- uses: actions/checkout@v3
- - 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
- id: start_app
- - name: Start workers
- run: npm run workers &
- working-directory: ./apps/api
- id: start_workers
- - name: Set up Rust
- uses: actions/setup-rust@v1
- with:
- rust-version: stable
- - name: Try the lib build
- working-directory: ./apps/rust-sdk
- run: cargo build
- - name: Run E2E tests for Rust SDK
- run: cargo test --test e2e_with_auth
deploy:
name: Deploy app