Add waiting for completion overload for Indexer.run() API (#53) #179
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: "0 21 * * *" # Runs at 1 or 2 PM PST (9 PM UTC) every day | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
if: github.repository == 'cortexclick/cortex-sdk' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Check types | |
run: npm run lint | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
if: github.repository == 'cortexclick/cortex-sdk' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
if: github.repository == 'cortexclick/cortex-sdk' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Run tests | |
env: | |
CORTEX_ORG: ${{ secrets.CORTEX_ORG }} | |
CORTEX_ACCESS_TOKEN: ${{ secrets.CORTEX_ACCESS_TOKEN }} | |
run: npm run test:ci | |
test-package: | |
name: test-package | |
runs-on: ubuntu-latest | |
if: github.repository == 'cortexclick/cortex-sdk' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Test that the package can be instantiated from the built files | |
env: | |
CORTEX_ORG: ${{ secrets.CORTEX_ORG }} | |
CORTEX_ACCESS_TOKEN: ${{ secrets.CORTEX_ACCESS_TOKEN }} | |
run: npm run test:package:ci |