mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-03 02:50:36 +08:00
feat(github/ci): improvements
This commit is contained in:
parent
055f7d2da0
commit
1a9f6b985a
3
.github/workflows/deploy-image-staging.yml
vendored
3
.github/workflows/deploy-image-staging.yml
vendored
@ -4,9 +4,6 @@ env:
|
|||||||
DOTNET_VERSION: '6.0.x'
|
DOTNET_VERSION: '6.0.x'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- mog/webscraper-refactor
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
2
.github/workflows/deploy-image.yml
vendored
2
.github/workflows/deploy-image.yml
vendored
@ -8,6 +8,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
paths:
|
||||||
|
- apps/api/**
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
27
.github/workflows/publish-js-sdk.yml
vendored
Normal file
27
.github/workflows/publish-js-sdk.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Publish JS SDK
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- apps/js-sdk/firecrawl/package.json
|
||||||
|
|
||||||
|
env:
|
||||||
|
TEST_API_KEY: ${{ secrets.TEST_API_KEY }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
name: Publish
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: "20"
|
||||||
|
- name: Authenticate
|
||||||
|
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
||||||
|
- name: Publish
|
||||||
|
run: npm publish
|
||||||
|
working-directory: ./apps/js-sdk/firecrawl
|
30
.github/workflows/test-js-sdk.yml
vendored
Normal file
30
.github/workflows/test-js-sdk.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: JS SDK Test Suite
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- apps/js-sdk/firecrawl/**
|
||||||
|
|
||||||
|
env:
|
||||||
|
TEST_API_KEY: ${{ secrets.TEST_API_KEY }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Run tests
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
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/js-sdk/firecrawl
|
||||||
|
- name: Run tests
|
||||||
|
run: pnpm run test
|
||||||
|
working-directory: ./apps/js-sdk/firecrawl
|
@ -1,8 +1,11 @@
|
|||||||
name: CI/CD
|
name: Server Test Suite
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
paths:
|
||||||
|
- apps/api/**
|
||||||
# schedule:
|
# schedule:
|
||||||
# - cron: '0 */4 * * *'
|
# - cron: '0 */4 * * *'
|
||||||
|
|
||||||
@ -31,8 +34,8 @@ env:
|
|||||||
ENV: ${{ secrets.ENV }}
|
ENV: ${{ secrets.ENV }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre-deploy:
|
test:
|
||||||
name: Pre-deploy checks
|
name: Run tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
Loading…
x
Reference in New Issue
Block a user