Skip to content

Update package.json #140

Update package.json

Update package.json #140

Workflow file for this run

name: Tests
on:
pull_request:
push:
# trying and staging branches are for BORS config
branches:
- trying
- staging
- main
jobs:
scrap_tests:
runs-on: ubuntu-latest
name: Crawler tests
services:
meilisearch:
image: getmeili/meilisearch:latest
env:
MEILI_MASTER_KEY: "masterKey"
MEILI_NO_ANALYTICS: "true"
ports:
- "7700:7700"
strategy:
fail-fast: false
matrix:
node: ["16", "18", "20"]
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "yarn"
- name: Install dependencies
run: yarn
- name: Run playground
run: yarn playground:start &
- name: Run default strategy scraper
run: yarn start -p misc/config_examples/docusaurus-default.json
- name: Run docsearch strategy scraper
run: yarn start -p misc/config_examples/docusaurus-docsearch.json
- name: Run scrapix server
run: yarn serve &
- name: Wait
run: sleep 5
- name: Call scrapix server
run: sh .github/scripts/scrapix_server_call_check.sh
lint_tests:
runs-on: ubuntu-latest
name: lint tests
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
cache: "yarn"
- name: Install dependencies
run: yarn
- name: Run JS/TS linter
run: yarn lint
build_test:
runs-on: ubuntu-latest
name: types-check
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20
cache: "yarn"
- name: Install dependencies
run: yarn
- name: Build project
run: yarn build