Add GitHub Actions workflows for CI and deploy

This commit is contained in:
2026-02-12 23:55:56 +03:00
parent 0812cf9e7a
commit ea0ba21359
2 changed files with 108 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Generate types
run: yarn codegen
- name: Build
run: yarn build
- name: Validate Pezkuwi Relay
run: ./node_modules/.bin/subql validate -f pezkuwi.yaml
- name: Validate Pezkuwi Asset Hub
run: ./node_modules/.bin/subql validate -f pezkuwi-assethub.yaml