fixing go sdk workflow

This commit is contained in:
rafaelsideguide 2024-08-15 17:31:49 -03:00
parent 32c6b1f136
commit 799ffde820

View File

@ -183,7 +183,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
go-version-file: "./apps/go-sdk/firecrawl/go.mod"
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
@ -199,15 +199,15 @@ jobs:
id: start_workers
- name: Install dependencies for Go SDK
run: go mod tidy
working-directory: ./apps/go-sdk
working-directory: ./apps/go-sdk/firecrawl
- name: Run tests for Go SDK
run: go test -v ./... -timeout 180s
run: TEST_API_KEY=${{ secrets.TEST_API_KEY }} go test -v ./... -timeout 180s
working-directory: ./apps/go-sdk/firecrawl
deploy:
name: Deploy app
runs-on: ubuntu-latest
needs: [pre-deploy-test-suite, python-sdk-tests, js-sdk-tests]
needs: [pre-deploy-test-suite, python-sdk-tests, js-sdk-tests, go-sdk-tests]
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master