Skip to content

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

chore: add go-sdk-tests job

KentHsub2e1b2ca6822
diff --git a/.github/workflows/fly.yml b/.github/workflows/fly.yml
index 3f34f860c..1b9fe6b9c 100644
--- a/.github/workflows/fly.yml
+++ b/.github/workflows/fly.yml
@@ -169,6 +169,41 @@ jobs:
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 ./...
+ working-directory: ./apps/go-sdk/firecrawl
+
deploy:
name: Deploy app
runs-on: ubuntu-latest