Implement indexer api #803
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: "Build and test" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Docker | |
- name: Docker production | |
run: docker build . | |
# Docker development | |
- name: Docker development | |
run: docker build -f Dockerfile.brain.dev . | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: yarn install | |
# Lint and format and prettier | |
- name: Lint | |
run: yarn lint | |
- name: Prettier | |
run: yarn format | |
# Build | |
- name: Build | |
run: yarn build | |
# Test | |
- name: Test | |
run: yarn test |