Skip to content

Merge pull request #955 from autonomys/chore/cleanup-indexers #3914

Merge pull request #955 from autonomys/chore/cleanup-indexers

Merge pull request #955 from autonomys/chore/cleanup-indexers #3914

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
codegen-and-build-indexers:
runs-on: ubuntu-latest
defaults:
run:
working-directory: indexers
name: Run codegen and build
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
- name: Set up Node.js πŸ“¦
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Enable Corepack πŸ“¦
run: corepack enable
- name: Install dependencies πŸ“¦
run: yarn install
- name: Generate types and project manifest πŸ”—
run: yarn codegen
- name: Build project πŸ”§
run: yarn build
ts-lint-and-build-explorer:
runs-on: ubuntu-latest
defaults:
run:
working-directory: explorer
name: Run eslint and code style check
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
- name: Set up Node.js πŸ“¦
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Enable Corepack πŸ“¦
run: corepack enable
- name: Install dependencies πŸ“¦
run: yarn install
- name: Run linter πŸ”
run: yarn lint:fix
- name: Build project πŸ”§
env:
NEXT_PUBLIC_GEMINI_3H_INDEXERS: ${{ secrets.NEXT_PUBLIC_GEMINI_3H_INDEXERS }}
run: yarn build
ts-lint-and-build-health-check:
runs-on: ubuntu-latest
defaults:
run:
working-directory: health-check
name: Run eslint, check typescript
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
- name: Set up Node.js πŸ“¦
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Install dependencies πŸ“¦
run: npm ci
- name: Run linter πŸ”
run: npm run lint
- name: Build project πŸ”§
run: npm run build