mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 03:29:01 +08:00
feat(ci/test-server): build go markdown parser
This commit is contained in:
parent
7770929dcd
commit
bc5a16d048
12
.github/workflows/test-server-self-host.yml
vendored
12
.github/workflows/test-server-self-host.yml
vendored
@ -14,6 +14,7 @@ env:
|
||||
HOST: 0.0.0.0
|
||||
ENV: ${{ secrets.ENV }}
|
||||
TEST_SUITE_SELF_HOSTED: true
|
||||
USE_GO_MARKDOWN_PARSER: true
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@ -56,6 +57,17 @@ jobs:
|
||||
pnpm exec playwright install-deps
|
||||
pnpm exec playwright install
|
||||
working-directory: ./apps/playwright-service-ts
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.19'
|
||||
cache-dependency-path: ./apps/api/sharedLibs/go-html-to-md/go.sum
|
||||
- name: Build go-html-to-md
|
||||
run: |
|
||||
go mod tidy
|
||||
go build -o html-to-markdown.so -buildmode=c-shared html-to-markdown.go
|
||||
chmod +x html-to-markdown.so
|
||||
working-directory: ./apps/api/sharedLibs/go-html-to-md
|
||||
- name: Start server
|
||||
run: npm start > api.log 2>&1 &
|
||||
working-directory: ./apps/api
|
||||
|
12
.github/workflows/test-server.yml
vendored
12
.github/workflows/test-server.yml
vendored
@ -32,6 +32,7 @@ env:
|
||||
USE_DB_AUTHENTICATION: ${{ secrets.USE_DB_AUTHENTICATION }}
|
||||
SERPER_API_KEY: ${{ secrets.SERPER_API_KEY }}
|
||||
ENV: ${{ secrets.ENV }}
|
||||
USE_GO_MARKDOWN_PARSER: true
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@ -63,6 +64,17 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
working-directory: ./apps/api
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.19'
|
||||
cache-dependency-path: ./apps/api/sharedLibs/go-html-to-md/go.sum
|
||||
- name: Build go-html-to-md
|
||||
run: |
|
||||
go mod tidy
|
||||
go build -o html-to-markdown.so -buildmode=c-shared html-to-markdown.go
|
||||
chmod +x html-to-markdown.so
|
||||
working-directory: ./apps/api/sharedLibs/go-html-to-md
|
||||
- name: Start the application
|
||||
run: npm start &
|
||||
working-directory: ./apps/api
|
||||
|
Loading…
x
Reference in New Issue
Block a user